Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: file handling

by massa (Hermit)
on Jul 09, 2008 at 19:38 UTC ( [id://696537]=note: print w/replies, xml ) Need Help??


in reply to Re^2: file handling
in thread file handling

Harder but -Ofun:
perl -e '@a=<>; print @a[3..$#a]'
[]s, HTH, Massa

Replies are listed 'Best First'.
Re^4: file handling
by oko1 (Deacon) on Jul 09, 2008 at 20:09 UTC

    Whoops. Slurping a file into memory - which is what '@a=<>' will do - is a bad idea unless you know that it's a small file.

    
    -- 
    Human history becomes more and more a race between education and catastrophe. -- HG Wells
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-18 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found