Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Where is my output stream to a file going?

by samarzone (Pilgrim)
on Mar 30, 2011 at 07:08 UTC ( #896327=note: print w/ replies, xml ) Need Help??


in reply to Where is my output stream to a file going?

The best thing to debug your problem is "perl debugger" (perl -d) and the simplest thing is "print". Did you check whether $_ or $fields[5] contain any value? I found a problem and a suspicion. Here are following.

  1. You do not have a space between split and its argument
  2. There could be good chances that while copy/pasting the text you unintentionally converted the tabs into spaces and everything goes into $fields[0]

I hope this helps

--
Regards
- Samar


Comment on Re: Where is my output stream to a file going?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-31 14:30 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 (278 votes), past polls