Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: error in printing output of Data::Dumper to file

by marquezc329 (Scribe)
on Dec 10, 2012 at 07:40 UTC ( #1008061=note: print w/ replies, xml ) Need Help??


in reply to error in printing output of Data::Dumper to file

It worked for me also (Perl v5.16.2). It would be helpful if you could post some of the surrounding code.

Lexical variables are preferred to bareword filehandles.

open my $fh5, ">>", "tagfile1" or die "Error: $!\n";

You may want to take a look at perldebtut and use the debugger to make sure your code is actually reaching the open / print statements as suggested by quester.

And as always,

use strict; use warnings;


Comment on Re: error in printing output of Data::Dumper to file
Select or Download Code
Re^2: error in printing output of Data::Dumper to file
by prlusr (Initiate) on Dec 10, 2012 at 08:05 UTC
    Thanks , it worked after I changed my file handler from bareword to my $FH5

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-07-11 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls