go ahead... be a heretic | |
PerlMonks |
Re^2: Parsing a Word placed between special charactersby Laurent_R (Canon) |
on May 02, 2013 at 11:52 UTC ( [id://1031740]=note: print w/replies, xml ) | Need Help?? |
Again assuming the explored string is in the $_ special variable, the words between square brackets can be retrieved as follows: $name = $1 if /\w+\[(\w+)\]\w+/;
In Section
Seekers of Perl Wisdom
|
|