develooper Front page | perl.perl5.porters | Postings from May 2009

variables could be qq interpolated in #line directives

Thread Next
From:
David Nicol
Date:
May 26, 2009 09:38
Subject:
variables could be qq interpolated in #line directives
Message ID:
934f64a20905260938w6c851dedma4bd0cf34c17dcef@mail.gmail.com
Would a patch to make the following DWIM be accepted?
(I meant for the second line of output to read "err at -e; line 99.")


$ perl -e '
> $x = __FILE__;
> # line 27 wahoo.foo
> warn "hmm";
> # line 99 $x;
> warn "err"'
hmm at wahoo.foo line 27.
err at $x; line 99.

-- 
between myriad opposing forces

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About