Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: strip until blank line

by quidity (Pilgrim)
on Nov 23, 2000 at 00:10 UTC ( #43013=note: print w/ replies, xml ) Need Help??


in reply to Re: strip until blank line
in thread strip until blank line

This will not work, as you are not shifting from what you think. Shift defaults to @_ or @ARGV depending on your current scope. You want to use:

 shift @data;

which you now have. You don't really though, as this solution (as a whole) requires you to read the entire file into memory, which could be a bad thing.


Comment on Re: Re: strip until blank line
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2015-07-05 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls