Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Uploading and reading file

by MidLifeXis (Monsignor)
on Nov 22, 2011 at 17:52 UTC ( #939503=note: print w/ replies, xml ) Need Help??

in reply to Uploading and reading file

Start with use strict;, use warnings;, and possibly use diagnostics;. You may have just been too aggressive in your trimming code, but I don't see where you declare $file before using it.

See also the section on Embedded newlines -- your line processing is fragile.

It is useful when you ask for help to make it easy for us to replicate your issue. Please include sample input, expected output, actual output, and code that compiles cleanly and illustrates your issue.


Comment on Re: Uploading and reading file
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2015-10-07 13:40 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (185 votes), past polls