[Vienna-pm] regex-foo

peter pilsl pilsl at goldfisch.at
Wed Jun 7 07:12:23 PDT 2006


>
> Nicht wahnsinnig elegant, aber es funktioniert:
> 
>   my $string="Use Python";
>   say(eval { $string=~s/Python/Perl/; $string });
>   sub say { print @_ }
> 

ich glaube, manchmal ist die verwendung von hilfsvariablen einfach ganz 
einfach :)

lgp

-- 
mag. peter pilsl
goldfisch.at
IT- & dataconsulting
tel: +43 650 3574035
tel: +43 1 8900602
fax: +43 1 8900602 15
pilsl at goldfisch.at


More information about the Vienna-pm mailing list