Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    } else {
      say "'$s' may be a string\n";    # Not "isn't a number"
    }
    
  2. or download this
    C:\>numVSstring.pl
    Enter a number or string: 123.2
    123.2 is a number
    ...
    C:\>numVSstring.pl
    Enter a number or string: III
    'III' may be a string