$var =~ /^\.\w+\s+(\w+)\s+./; $var = $1;
While this is the obvious and most reasonable suggestion, given the apparent level of (in-)expertise of the OP, it should be worth reminding him of always checking whether the match actually succeeded.
In reply to Re^2: Extract the variable
by blazar
in thread Extract the variable
by denzil_cactus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |