http://www.perlmonks.org?node_id=979063


in reply to Re^3: String contents
in thread String contents

still not sure how to use it. Assumer my variable is $var, and my output filehandle is OUTFILE.When I tried the following, it failed. print Dumper($struct->stuff); print OUTFILE "stuff\n";

Replies are listed 'Best First'.
Re^5: String contents
by Anonymous Monk on Jun 29, 2012 at 07:38 UTC

    Assumer my variable is $var , and my output filehandle is OUTFILE.When I tried the following, it failed.

    If your variable is called $var why are you trying to print $struct...?

    print OUTFILE Dumper( $var );

    perlintro