Skip to content

Instantly share code, notes, and snippets.

@jhannah
Created October 12, 2010 18:04
Show Gist options
  • Select an option

  • Save jhannah/622624 to your computer and use it in GitHub Desktop.

Select an option

Save jhannah/622624 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
$site = "http://sample.com";
$testcommand = "test command";
print "SAMPLE\n";
Base();
if (($base eq "show") && ($command eq "options")){
Options();
}
if ($base eq "show"){
Show();
}
exit;
# ----------
# subs down here
# -----------
sub Base {
print ">";
our $ex=<STDIN>;
chomp $ex;
our ($base, $command) = split(/ /, $ex);
}
sub Show{
print "s0me test shit\n";
print "ex: six66 \n";
Base();
}
sub Options{
print "Site : $site \n";
print "Test : $testcommand\n";
Base();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment