Thread HTML Seite mit Links mittels Perl-Module erstellen (53 answers)
Opened by rooky at 2007-10-25 01:56

rooky
 2007-11-05 00:14
#101852 #101852
User since
2007-10-25
38 Artikel
BenutzerIn
[default_avatar]
Hallo zusammen, ich habe mich bei CPAN schlau gemacht und habe dieses Modul Path::Resource gefunden. Würde es mein Problem lösen? Also hier was ich gemacht habe
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
 use strict;
 use Path::Resource;
 
   $rsc = Path::Resource->new(uri => "http://localhost/", dir => "/srv/www/htdocs", 
        path => "verzeichnis/m/^\w+-\w+-\w+-\w+-\w+-\d\d\d\d\.pdf\z/s");

    my $file = $rsc->file; 
    $uri = $rsc->uri; 

Ich bekomme aber folgende Fehlermeldung:

Code: (dl )
1
2
Unrecognised escape \w passed through at line skript.pl line 7
Global symbol "$rsc" requires explicit package name at skript.pl line 6


Danke im Voraus

View full thread HTML Seite mit Links mittels Perl-Module erstellen