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:

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

No comments yet.

Leave a Comment