Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-11-25 12:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (674 votes), past polls