|Pathologically Eclectic Rubbish Lister|
perl one linerby selva (Scribe)
|on Apr 02, 2009 at 13:35 UTC||Need Help??|
selva has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks ,
How to substitute and store the result in different variable in the same line .
Ex : $var1 = "10/02/2009";
I have to remove the "/" in the above variable and store in to different variable .
I tried following one , but it is returning substitution status only.
($var2) = ( $var1 =~ s!/!!);