in reply to Special Variable Pattern Match whilst reading input from a file

And a slightly different solution:
while (<CONFIG>) { $bar = $1 if /^frz\s*=\s*(\w+);/; }

Arjen

Update:Oops, forgot the (apparently) mandatory semicolon.

  • Comment on Re: Special Variable Pattern Match whilst reading input from a file
  • Download Code