Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Assign (key, value) to a hash w/o clobbering hash

by mreece (Friar)
on Sep 28, 2006 at 14:45 UTC ( #575364=note: print w/replies, xml ) Need Help??


in reply to Re^2: Assign (key, value) to a hash w/o clobbering hash
in thread Assign (key, value) to a hash w/o clobbering hash

those are not at all equivalent!
DB<1> x %hash = map { split( /X/, $_ ) } ( "fooXbar","bishXbash"); 0 'foo' 1 'bar' 2 'bish' 3 'bash' DB<2> x %hash = split /X/, ("fooXbar","bishXbash"); 0 'bish' 1 'bash'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2021-02-27 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?