All pastes #88059 Raw Edit

blah

public text v1 · immutable
·published 2006-07-14 13:40 UTC
rendered paste body
use Getopt::Std;
getopts (":s:n:",\%args);
if (defined $args{s}){
          $string = $args{n};
}
if (defined $args{n}) {
          $number = $args{n};
}
if (!defined $args{s} or !defined $args{s}) {
          print "Usage: perl $0 -s string -n number\n";
          exit;
}
print "This is a string = $string \nThis is a number = $number\n";