Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: ternary operator

Perl: ternary operator
{filelink=15267}

 #!/usr/local/bin/perl -w
print "Enter a number: ";
$line=;
# Check if a number is odd or even
print (($line % 2)?"odd":"even");

Users who found this page were searching for:

  • where is stringvar defined
  • mail creatimage.com
  • find all connected devices in java
  • mail creatimage.com loc:US
  • get value from lists in python
  • calculate factorial using for loop in python
  • java.awt getelapsedtime
  • java url password
  • perl nuber of day
  • perl ternary

No comments yet.

Leave a Comment