in reply to get a text out from a string
Use substitute
my $productcode = "FCLA"; $productcode =~ s/.*FCL.*/FCL/; print $producecode
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get a text out from a string
by adrive (Scribe) on Feb 28, 2008 at 01:15 UTC | |
|
Re^2: get a text out from a string
by ack (Deacon) on Feb 28, 2008 at 23:08 UTC |