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

Re: Grab input from the user and Open the file

by shmem (Chancellor)
on Nov 26, 2016 at 19:18 UTC ( [id://1176614]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $directory =  '/home/psimo/it441/challenge/logs';
    ...
    open(FH, '<', '/home/psimo/it441/challenge/logs/$theFile') or die "CAN
    +'T OPEN FILE! you don't have the log file\n";
    
  2. or download this
    open FH, '<', "$directory/$theFile" or die "CAN'T OPEN FILE! you don't
    + have the log file\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found