Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Split problem using limit

by NovMonk (Chaplain)
on Aug 20, 2004 at 16:50 UTC ( #384651=note: print w/replies, xml ) Need Help??


in reply to Split problem using limit

Well, the "removing all doubt" appears to be covered.

The reason the 0 worked was because split was not finding anything to split on, except for that "10 minutes" line-- it was reading the 0 as the delimiter. If I had picked another character that could never appear in any line of my text file, I would have gotten the same result-- but not because I was doing anything right. I'll stop making sh*t up, davido. And eric256's right-- if I want the whole line, why not just say so?

Thanks to you both. I'll get back to my penance now.

Pax,

NovMonk

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-05-25 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?