Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: No such file or directory at R_loop2.pl line 19.

by ig (Vicar)
on Aug 28, 2012 at 06:26 UTC ( #990146=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $file (@lines) {
        open(my $fh, '<', $file) or die "$file: $!";
        ...
    }
    
  2. or download this
    my $file = "junk.txt";
    open (my $fh, '<',  $file) or die "Can't open $file for read: $!";
    ...
        push (@lines, $_);
    }
    close($fh) or die "Cannot close $file: $!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-12-27 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls