in reply to
Print not printing
Hi,
In this case, it gets interpretated as print
FILEHANDLE
LIST
and + as unary operator.
Doing an assigment first, remove the unambiguity.
$a = $b +$c; print $a;
[download]
or, explicity defining the output handle:
print STDOUT $b +$c;
[download]
But's is one of this perlish things, I recommend you using spaces, and all the things to make things more clear.
Regards,
:)
Comment on
Re: Print not printing
Select
or
Download
Code
In Section
Seekers of Perl Wisdom