| LeoNerd | sodas: Umm.. yes... Because a regexp isn't a string "this is a string" |
| hobbs | sodas: because qr// constructs a regex object |
| sodas | oh, okey |
| hobbs | sodas: and "qr//" constructs a string that has a q, an r, and some slashes in it |
| sodas | I see, doog to me :) dooh even |
| LeoNerd | qr/this is a regexp/ |
| mauke | eval: $x = qq/this is a string/; print $x |
| buubot | mauke: this is a string 1 |
| sodas | thanks |
| jshriver | Anyone here use Net::FTP? trying to figure out how to get a file and store it at a given local location |
| sodas | I'll be back for more goodies later, enjoy yourselves till then, later |
| jshriver | the page says get(remotefile, localfile, location) but what if you want to keep the same filename |
| devian | hi |
| jshriver | I tried get($filename, $filename, $destdir) but I get errors |
| avar | STOP TRYING TO GET ME TO SUBMIT THAT PATCH TO PERL TO FIXOR QR// I'M ON TO YOU PEOPLE! |
| Flawless | avar: and on something else ;) |
| avar | always |
| Flawless | ;) |
| LeoNerd | avar: er..? What patch? What fix? |
| rindolf | avar: you're my homeboy! avar: you'll do it, right! |
| avar | EEK |
| LeoNerd | rindolf: Do you suppose Error makes a valid-enough case to request a 'leave' keyword in 5.10? A backport of perl6's |
| rindolf | LeoNerd: hmm... LeoNerd: what does leave do? |
| LeoNerd | Consider: |
| rindolf | LeoNerd: if you want - write the patch. |
| avar | LeoNerd: bless qr// into something else than "Regexp" |
| rindolf | LeoNerd: write an article about it, and I'll read. |
| LeoNerd | use 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 |
| avar | USE GOTO |
| rindolf | LeoNerd: nice! LeoNerd: would you write the patch? |