Hello All,

Can someone tell me the proper syntax to print out the value in a
reference?
Thank you.,,

my $string = '';
open my $scalar_fh, '>>', \$string;

my $log_message = "here is my string...";
print $scalar_fh $log_message;

foreach my $fh ($scalar_fh ) {
        print "$fh";

}


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to