Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Reopen file when contents changed?

by salva (Canon)
on Jun 07, 2005 at 13:59 UTC ( #464306=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";
      scalar <$file>
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-08-14 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?