|
|
| Don't ask to ask, just ask | |
| PerlMonks |
perl one linerby selva (Scribe) |
| on Apr 02, 2009 at 13:35 UTC ( #754952=perlquestion: print w/ replies, xml ) | 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!/!!);
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||