adrive has asked for the wisdom of the Perl Monks concerning the following question:
what im trying to do is to get portion of the string out, according to what i specify. Is this possible? Cause there's like FCLA, FCLB, FCLCD, FCLXX, but im checking whether it belongs to FCLmy $productcode = "FCLA"; #then $productcode =~ /FCL/ print $producecode #should return "FCL" only
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get a text out from a string
by moritz (Cardinal) on Feb 27, 2008 at 09:04 UTC | |
|
Re: get a text out from a string
by adrive (Scribe) on Feb 27, 2008 at 09:05 UTC | |
by moritz (Cardinal) on Feb 27, 2008 at 09:14 UTC | |
|
Re: get a text out from a string
by grizzley (Chaplain) on Feb 27, 2008 at 09:37 UTC | |
by ack (Deacon) on Feb 28, 2008 at 23:08 UTC | |
by adrive (Scribe) on Feb 28, 2008 at 01:15 UTC |