http://qs321.pair.com?node_id=11106180


in reply to Change Namespace of Package

Adding to what haukex wrote, you could get the version of the module from the command line, if you wrap command line processing into a BEGIN block:

use strict; use warnings; my %options; BEGIN { use Getopt::Std; getopt('v', \%options); die "invalid value for -v switch\n" if ($options{v} !~ /^(?:7|8)$/); my $path = "/path/for/v$options{v}/lib/perl5"; unshift @INC, $path; } use Infoblox; # /path/for/v$options{v}/lib/perl5 will be searched firs +t
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'