[sf-perl] Odd behavior for dot operator?
Francisco Obispo
fobispo at isc.org
Thu Mar 17 23:02:51 PDT 2011
the problem is the precedence or the operators.
Try:
$x = 'a' . ( (defined $y) ? $y :'undef' ."\n"); # now I try to put something up front
print $x;
On Mar 17, 2011, at 10:55 PM, Andrew Sigmund wrote:
> $x = 'a' . (defined $y)? $y :'undef' ."\n"; # now I try to put something up front
> print $x;
Francisco Obispo
Hosted@ Programme Manager
email: fobispo at isc.org
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
Key fingerprint = 532F 84EB 06B4 3806 D5FA 09C6 463E 614E B38D B1BE
More information about the SanFrancisco-pm
mailing list