Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Being pretentious, and getting away with it.

by aquacade (Scribe)
on Jul 29, 2001 at 14:24 UTC ( #100668=note: print w/ replies, xml ) Need Help??


in reply to Being pretentious, and getting away with it.

A quick test of 5.6.1 build 628 using (did I do this correctly?):

for (split /(A)|B/, "1A2B3") {print "'$_' defined\n" if (defined);}
Produces same results as your 5.005_03 example? Your correction would revert to the 5.005_02 behavior with undef's coming through?

Is this a bug in split in the latest release?

I'm somewhat confused by this node as a newbie. (Please don't stone me!)


Comment on Re: Being pretentious, and getting away with it.
Download Code
Replies are listed 'Best First'.
Re: Re: Being pretentious, and getting away with it.
by japhy (Canon) on Jul 29, 2001 at 18:38 UTC
    The bug has existed since 5.005_03. In the next version of Perl, it will be corrected.

    _____________________________________________________
    Jeff japhy Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-07-29 05:21 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 (260 votes), past polls