Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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,
$working = 1987)
However, $remainder contains the entirety of $inLine and $working is empty. What am I missing?
Back to
Seekers of Perl Wisdom