Perl: Condition?print "Is true":print "Is false";
I was wondering if perl got the equivalent of php for the coditional check below:
syntax error at ./shutdown_all line 33, near ")?"
Try the below in Perl.
print defined($_)? "$_": "\$_ is not defined";
It's working, Thanks.
|All times are GMT -5. The time now is 04:09 AM.|