Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I have a line of input that looks something like:
RPC, rpc #001b, (1987) I'm attempting to strip the year from inside the parenthesis. The code is: ($remainder, $working) =~ split(/\s\(/, $inLine); where $inLine is the above-referenced line. I was expecting to see the following after the split:
$remainder = RPC, rpc #001b, However, $remainder contains the entirety of $inLine and $working is empty. What am I missing? In reply to split question by Anonymous Monk
|
|