Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Special cases make special community

by JavaFan (Canon)
on Feb 01, 2009 at 18:01 UTC ( #740559=note: print w/replies, xml ) Need Help??


in reply to Special cases make special community

One special case of split you haven't mentioned yet is split in void (or scalar) context, which puts the result into @_.

Also, split with the empty pattern splits into separate characters.

As for 'afterthought features' in modern regular expressions, since 5.10 we also have (*...) as 'new syntax'. Before 5.10, (* could not be valid (unless escaped). (+ is up for grabs for the next wave of new features. ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2023-01-31 10:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?