#perl - Thu 29 Mar 2007 between 16:29 and 16:36



LeoNerdsodas: Umm.. yes...
Because a regexp isn't a string
"this is a string"
hobbssodas: because qr// constructs a regex object
sodasoh, okey
hobbssodas: and "qr//" constructs a string that has a q, an r, and some slashes in it
sodasI see, doog to me :)
dooh even
LeoNerdqr/this is a regexp/
maukeeval: $x = qq/this is a string/; print $x
buubotmauke: this is a string 1
sodasthanks
jshriverAnyone here use Net::FTP? trying to figure out how to get a file and store it at a given local location
sodasI'll be back for more goodies later, enjoy yourselves till then, later
jshriverthe page says get(remotefile, localfile, location) but what if you want to keep the same filename
devianhi
jshriverI tried get($filename, $filename, $destdir) but I get errors
avarSTOP TRYING TO GET ME TO SUBMIT THAT PATCH TO PERL TO FIXOR QR//
I'M ON TO YOU PEOPLE!
Flawlessavar: and on something else ;)
avaralways
Flawless;)
LeoNerdavar: er..? What patch? What fix?
rindolfavar: you're my homeboy!
avar: you'll do it, right!
avarEEK
LeoNerdrindolf: Do you suppose Error makes a valid-enough case to request a 'leave' keyword in 5.10?
A backport of perl6's
rindolfLeoNerd: hmm...
LeoNerd: what does leave do?
LeoNerdConsider:
rindolfLeoNerd: if you want - write the patch.
avarLeoNerd: bless qr// into something else than "Regexp"
rindolfLeoNerd: write an article about it, and I'll read.
LeoNerduse feature qw( leave ); sub foo { my $code = sub { leave &foo; 10 }; $code->(); }
rindolf: return == "leave 1"
But we can ask for other things to be 'return'ed from than just the currently-enclosing sub
avarUSE GOTO
rindolfLeoNerd: nice!
LeoNerd: would you write the patch?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 

IrcArchive