Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 wandering the Monastery: (6)
As of 2016-06-29 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (377 votes). Check out past polls.