At 5:40 PM +0200 10/2/10, jobst müller wrote:
Hello Alex

many thanks for the answer.

well i put all to home > usr > perl


Please trim your replies and eliminate old material that is not relevant. Thanks.


So here we go: i start them in the console like the following and get the following results: see below!

suse-linux:/usr/perl # perl perl_script_two.pl

#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use File::Find::Rule;
my @files = File::Find::Rule->file()
 ->name('einzelergebnis*.html')
 ->in( '/home/usr/perl/htmlfiles' );
foreach my $file(@files) {
 print $file, "\n";

}

Results:
Can't stat /home/usr/perl/htmlfiles: No such file or directory
 at /usr/lib/perl5/site_perl/5.12.1/File/Find/Rule.pm line 594

That message indicates that the directory /home/usr/perl/htmlfiles does not exist. What are the results of executing the following command in a shell (not Perl):

ls /home/usr/perl/htmlfiles



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to