Am Montag, 7. M�rz 2005 19.54 schrieben Sie:
> is this line
>
> :> $_=~s{delete}{};
>
> a named unary call?
Oups?
It's just a bad choosen example; I should not have used a reserved word as
string content (I realized it after having sent my post)
Its simply a regex which deletes the first occurance of the string "delete" in
$_ ;
it's the same as
$_=~s/delete//;
example:
bash-2.05b$ perl
use warnings; use strict;
my $a="this is deletea string";
$a=~s{delete}{};
print $a,"\n";
# this prints:
this is a string
greetings joe
> [...]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>