Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-02-06 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (34 votes). Check out past polls.

    Notices?