#perl - Fri 4 May 2007 between 21:31 and 21:37



buubotdazjorz: ['a','b','c']
dazjorzHA
holsthow does it know that \@a should be displayed?
dazjorzholst: how does what know?
Yaakoveval: @a=qw/a b c/; $_ while (@a)[0..2]
holstthe perl promt gives "syntax error"
simcop2387holst: Data::Dumper does it for him
tybalt89holst: ref()
buubotKilling 1306 due to run time
dazjorzYeah
holst: It checks wether it's a reference
holst: If not, it just prints, else, it prints with Data::Dumper
Yaakoveval: @a=qw/a b c/; \(@a)[0..2]
buubotYaakov: \'c'
YaakovHeh
dazjorzHah
:D
holsteval: $a='a';
buubotholst: a
holsteval: $a='a'
buubotholst: a
dazjorzholst: whew, you really needed eval for that, didn't you ;P
simcop2387eval: $a='b'; $b=\$a; $a=\$b; $b=$$a; $b;
buubotsimcop2387: \\$VAR1
holsthehe, no i was looking in the man page of DD
simcop2387eval: $a='b'; $b=\$a; $a=\$b; $b=$$a; $$$$$$$$$$$$$$$$$b;
buubotsimcop2387: \\$VAR1
holstlol
dazjorzeval: $a='b'; $b=\$a; $a=\b; $b=$$a; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$b;
buubotdazjorz: b
actiondazjorz feels rich
dazjorzfeels rich
eh, right
simcop2387dazjorz: wait.... why did you get b?
dazjorzeval: $a='b'; $b=\$a; $a=\$b; $b=$$a; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$b;
buubotdazjorz: \\$VAR1
dazjorzbecause I forgot $
eval: print Dumper($::main::main::main)
buubotdazjorz: Error: Undefined subroutine &main::Dumper called at eval line 1.
holstits a 2 step loop?
dazjorzeval: use Data::Dumper; print Dumper($::main::main::main)

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 

IrcArchive