#perl - Thu 29 Mar 2007 between 17:08 and 17:13



perlygatekeeperwell there, perl seemed to be able to convert the string '1' into some integer format, add one to it and return that
jonsmith1982eval: print
buubotjonsmith1982: HASH(0xa04cfd8) 1
jonsmith1982why is return print a hash?
ksisn't it a concatenation, perlygatekeeper ?
hobbseval: $_
buubothobbs: {file => 'eval.pm',syntax => qr/(?-xism:^\s*((?:[^:,;\t \n_-]+[:,; -]\s*)?eval:.+))/,code => sub { "DUMMY" }}
hobbsks: read all, not just half.
perlygatekeeperks:?
Ani-_ks: his first example is an addition, his second example is a concatenation.
ksAni-_ perhaps i misread it
perlygatekeepereval: $x='1'; $x++; $x;
buubotperlygatekeeper: 2
perlygatekeepereval: $x='1'; $x .= " cat"; $x;
buubotperlygatekeeper: 1 cat
Ani-_ks: perhaps you can't read?
ksAni-_ yeah i even can't type (piss)
Ani-_ks: perhaps you are unable to understand everything that was said?
perlygatekeeperks: so perl just sort of works
Ani-_s/sort of //; :)
ksAni-_ yeah you are the winner
perlygatekeepereval: $x='1.000'; $x .= " cat"; $x;
buubotperlygatekeeper: 1.000 cat
perlygatekeepereval: $x='1.000'; $x++; $x;
buubotperlygatekeeper: 2
Ani-_ks: you are going in the wrong direction...
perlygatekeepereval: $x='1.0e01'; $x++; $x; # ok this addition example is pretty cool
buubotperlygatekeeper: 11
perlygatekeepereval: $x='1.0e01'; $x .= " is a lot of cats to own"; $x; # ok this addition example is pretty cool
buubotperlygatekeeper: 1.0e01 is a lot of cats to own
perlygatekeeperks: are you impressed/confused yet?
eval: $x='ab'; $x++; $x; # increment a string WTF?l
buubotperlygatekeeper: ac
ksperlygatekeeper that's pretty lots of job done language writer
rindolfperlygatekeeper: whoa! spam.
perlygatekeeperspam?
rindolfks: have you read Beginning Perl yet?
DieuHi all, have a problem on this subrouting: http://sial.org/pbot/23873
rindolfks: or my Perl for Newbies at least
perlbot: newbies

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101 108 

IrcArchive