Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Another question about the split function

by pfaut (Priest)
on Dec 11, 2007 at 23:16 UTC ( [id://656512]=note: print w/replies, xml ) Need Help??


in reply to Re: Another question about the split function
in thread Another question about the split function

If EXPR is omitted, splits the $_ string. If PATTERN is also omitted, splits on whitespace (after skipping any leading whitespace)
As a special case, specifying a PATTERN of space (' ' ) will split on white space just as split with no arguments does

Those little factoids escaped me. I suppose it's time to start reading 'Programming Perl' for the third (or is it fourth?) time. No matter how many times I read it I always pick up something new

90% of every Perl application is already written.
dragonchild
  • Comment on Re^2: Another question about the split function

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2025-12-05 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (83 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.