in reply to How do I do character substitution on strings stored in a variable
Use:if ( /^$fname/ eq "s" ) { # how do I do the substitution?? printf "hello\n"; }
$fname =~ s/^s/_S/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I do character substitution on strings stored in a variable
by gcebulka (Initiate) on Oct 03, 2008 at 18:52 UTC |