#!/usr/bin/env perl use lib './blib/lib/'; use LDAPShell; use Getopt::Long; my $usage=<0,'help'=>0); my @args = ("config=s","verbose+","help!","template=s"); GetOptions(\%args,@args) or die $usage; die $usage if $args{help}; my $shell = LDAPShell->new($ini); $shell->loop();