On Tuesday 27 November 2007 08:18, lerameur wrote: > > works good now: > my $file_to_print = ( `ls -1c /test/*log | tail -1 `); > > print "file_to_print: $file_to_print"; > > open (FILE, "< /test/$file_to_print") or die "Could not open > file_to_print $: $!"; > > although the third line is not opening the file.
So if it "works good" what is the problem? > It prints out good but but How do you know that it "prints out good"? > I get an error while opening the file.. What exact error message do you get? Did you read the replies to your original message? (Why do you have the $: variable in the error message?) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
