You don't want to test the diamond operator, you want to test whether any command line arguments were supplied:
if ( @ARGV == 0 ) { print "Something useful\n"; }
/J\
In reply to Re: Testing <> for undefined
by gellyfish
in thread Testing <> for undefined
by kayak9630
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |