develooper Front page | perl.perl5.porters | Postings from August 2013

Re: Should runperl warn about "<"?

Thread Previous
Craig A. Berry
August 31, 2013 13:30
Re: Should runperl warn about "<"?
Message ID:
On Fri, Aug 30, 2013 at 7:53 PM, Father Chrysostomos <> wrote:
> Craig A. Berry wrote:
>> So if there is a warning to be added to runperl, it would be for a
>> redirection character as the first character of an argument (before
>> quotes are added).
> What about $x = <foo>, with spaces before the bracket?  Is anything
> else affected?

That seems to be fine:

$ perl -"Dt" -e "$x = <foo>;"


(-e:0) enter
(-e:0) nextstate
(-e:1) gvsv(main::x)
(-e:1) gv(main::foo)
(-e:1) readline
(-e:1) leave

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About