Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[holli]: Happy-the-monk: not quite
[holli]: I just ordered a pair of deans connectors to replace them. probably propriatary

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-11-19 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (281 votes). Check out past polls.

    Notices?