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

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