Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Reopen file when contents changed?

by blazar (Canon)
on Jun 07, 2005 at 14:05 UTC ( #464308=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub first_line_from_file {
      my $fn = shift;
    ...
        or die "unable to open file $fn";
      <$file>
    }
    
  2. or download this
      scalar <$file>;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-08-14 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?