http://qs1969.pair.com?node_id=1233720


in reply to Re^2: Parsing Problems
in thread Parsing Problems

Two things stand out here:

An idea is to print the string you're evaling, and of course checking whether eval produced an error in $@:

my $code = qq~modes::~ . $ARGV[2] . qq~::flex(/$line);~; warn $code; eval $code; warn "Eval failed: '$@'" if $@;