Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Grab last line and print

by izut (Chaplain)
on Aug 28, 2006 at 10:54 UTC ( [id://569963]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Tie::File;
    tie @array, 'Tie::File', $filename or die $!;
    print $array[-1];
    
  2. or download this
    use Tie::File;
    use Fcntl 'O_RDONLY';
    tie @array, 'Tie::File', $filename, mode => O_RDONLY
        or die $!;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-20 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found