in reply to get a text out from a string
is there a one liner that actually returns what i specify directly without having to write a conditional statement?my $productcode = "FCLA"; if($productcode =~ /^FCL/){ $productcode = "FCL"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get a text out from a string
by moritz (Cardinal) on Feb 27, 2008 at 09:14 UTC |