Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Useless use of a constant (ict) in void context

by ikegami (Pope)
on Nov 15, 2013 at 18:51 UTC ( #1062774=note: print w/ replies, xml ) Need Help??


in reply to Useless use of a constant (ict) in void context

Convert the line endings of Test/NoWarnings.pm from LF to CRLF.


Perl tries to seek back (for reasons I can't remember, perhaps BOM detection), but gets the position wrong because the line ending are different than expected. As a result, Perl ends up thinking the file being executed contains

ict; use warnings; use Carp (); ...
or, after your edit,
rnings; use Carp (); ...
.


Comment on Re: Useless use of a constant (ict) in void context
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2015-07-02 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls