I'm probably misunderstanding what you want, I'm rather new at this, but why not this?
if ($line =~ /\((.*)\)\// ) {print "MACHINE=$1 \n";}That way it gets anything between '(' and ')\'
In reply to Re: Parsing Issue while using Variable name in Pattern
by kino
in thread Parsing Issue while using Variable name in Pattern
by perlavi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |