in reply to Re: Extract the variable
in thread Extract the variable
$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.
|
|---|