On Jun 30, 5:38 pm, [EMAIL PROTECTED] (Rob Dixon) wrote:
> onlineviewer wrote:
>
> > Can someone tell me the proper syntax to print out the value in a
> > reference?
> > Thank you.,,
>
> I'm not sure what you mean. Look:
>
> > my $string = '';
> > open my $scalar_fh, '>>', \$string;
>
> So you have
onlineviewer wrote:
>
> Can someone tell me the proper syntax to print out the value in a
> reference?
> Thank you.,,
I'm not sure what you mean. Look:
> my $string = '';
> open my $scalar_fh, '>>', \$string;
So you have opened a file handle to append to the scalar $string.
> my $log_message =
onlineviewer wrote:
Hello All,
Hello,
Can someone tell me the proper syntax to print out the value in a
reference?
I assume you mean how to dereference a reference?
perldoc perlref
Thank you.,,
my $string = '';
open my $scalar_fh, '>>', \$string;
my $log_message = "here is my string..
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 unsu