Harold Castro [HC], on Thursday, February 17, 2005 at 22:47 (-0800
(PST)) typed:

HC> for example:
HC> here is my string:
HC> $_ = "but";
HC> s/u/a/g;
HC> print $_;

what about this:
( my $string = "but" ) =~ s/u/a/g;

-- 

 ...m8s, cu l8r, Brano.

[Old Farts don't have to be politically correct.]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to