in reply to Matching a pattern which resides within round brackets
Of course, I can always avoid this problem by doing something like this:
$sub_p_tmp[$i] =~ s/[()]//; if ( $sub_p_tmp[$i] =~ m/^(.*)\,(.*)\,(.*)[,;]$/ ) { @args = ($1, $2, $3); }
But I feel like that's cheating. I want to know why the the original way doesn't work!! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching a pattern which resides within round brackets
by jbl_bomin (Sexton) on Nov 27, 2008 at 15:29 UTC |