Help for this page

Select Code to Download


  1. or download this
    # Make '3' into '03'
    $some_value = sprintf "%02d", $some_value;
    
  2. or download this
    my $time = localtime();
    if ($time =~ /^Tue/i) {
        if ($time =~ /2005$/) {
            print "It's some Tuesday in 2005\n";
        }
    }