#perl - Tue 27 Mar 2007 between 22:40 and 22:48



PerlJamThat sounds like behavior someone has yet to exploit fully. :-)
maybe there's a golf challenge waiting for that particular behavior
GigsawRandal, in your example, the values were already undef
PerlJamGigsaw: no they weren't; they were the even numbers
byleth!pastebin
pastebin
nopaste
meh
Gigsawah, yeh
Randalperlbot, paste > byleth
gigsaw - no
it lost the value
the value for 3 was previously 4
repeat the experiemnt with @keys = qw(5 3 1)
eval: %x = (1..10); @keys = qw(5 3 1); @y{@keys} = delete @x{@keys}; \%y
buubotRandal: {'1' => 2,'3' => 4,'5' => 6}
Randalsee.
the doubling of 3 means we lost the 3/4 pair
Gigsawgot you
second time around, the key lookup of three found nothing, and could only assign the key value of 3 to undef
s/second time around/upon seeing the duplicate/
Randalright
bylethim trying my damndest to learn this so please dont hate
http://sial.org/pbot/23826
Randalwow - that's defensive. :)
bylethi know how freenode operates
Randalbyleth - I stopped reading at the 5th line
actionCPAN upload: ExtUtils-ModuleMaker-0.49 (+++++) by JKEENAN
CPANupload: ExtUtils-ModuleMaker-0.49 (+++++) by JKEENAN
Randalplease look at "perldoc CGI"
Chris62vwbyleth, well, you should use the CGI module instead of printing the header out, getting the parameters by hand, etc.
Randaluse CGI.pm, not your own thing with $ENV{QUERY_STRING}
it'll be far easier.
Chris62vwbyleth, the CGI module handles all of that for you
Randalheh
bylethit does/
Chris62vwand less error prone, of course
Randalwe're all agreeing
Chris62vwsure it does :-)
byleththis is spankin me
Randalso it's got to be what you do next

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 

IrcArchive