[tpm] I wish I was better at regex's
Shaun Fryer
sfryer at sourcery.ca
Wed Mar 9 11:02:15 PST 2011
actually, it doesn't work. there're a few I didn't notice which get truncated...
still working on it. interesting problem... :)
--
Shaun Fryer
cell: 1-647-709-6509
voip: 1-647-723-2729
On Wed, Mar 9, 2011 at 1:58 PM, Fulko Hew <fulko.hew at gmail.com> wrote:
>
>
> On Wed, Mar 9, 2011 at 1:48 PM, Shaun Fryer <sfryer at sourcery.ca> wrote:
>>
>> my $strip = qr{;[^\;]+$};
>> while (<DATA>) {
>> chomp;
>> $_ =~ s/$strip//;
>> print $_, "\n";
>> }
>
> Congratulations Shaun, you win the prize! (a free beer at the next meeting),
> but.
> can you explain it to me? and why it manages to avoid quotes;
> I don't see how it does what it does.
> ... just another sign that is time to retire :-(
>
>
>
More information about the toronto-pm
mailing list