in reply to Re: String contentsin thread String contents
#do some stuff that generates a structure called $struct->stuff
or if you want a structure more stringified, use Data::Dump as already mentioned
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 );
you are right, I wanted to print out the string structure. If I know the structure, then I could extract it. Any other suggestions?
About what? Read How do I post a question effectively?
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (318 votes). Check out past polls.