http://qs321.pair.com?node_id=170148


in reply to Parse C-like define statements

And of course the first line of that sub should read
my ($filename, $option) = @_;
That's what I get for posting code that was tested in a slightly different form :)