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

Re: Should runperl warn about "<"?

Thread Previous | Thread Next
Father Chrysostomos
August 31, 2013 00:53
Re: Should runperl warn about "<"?
Message ID:
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?

A cursory reading of vms.c:mp_getredirection suggests & | < > 2> need
special handling.  While most of those will cause syntax errors and
are unlikely to be fed to runperl, some future test author might be
testing syntax errors.  Adding warnings for all problematic cases now
will avoid future headaches.

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