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!/!!);
In reply to perl one liner by selva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |