Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created December 9, 2010 10:12
Show Gist options
  • Save Altreus/734562 to your computer and use it in GitHub Desktop.
Save Altreus/734562 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use Opt::Imistic;
use Data::Dumper;
print Dumper (\%Opt::Imistic::opts);
$ perl -Ilib example.pl --foo=bar -a -b baz foo.pl
$VAR1 = {
'a' => 1,
'b' => 'baz',
'foo' => 'bar',
'_' => [
'foo.pl'
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment