SPUG: Looking for Getopt::Std
Phil Kirsch
phil at scharp.org
Fri Feb 1 06:32:58 PST 2008
Thanks!
(Looking closer, I think I had a typo in one test script that may have
lead me astray -- GEtOpt::Std.)
#!/usr/local/bin/perl
use Tk;
use GEtopt::Std;
print ("Hello ACI\n");
print ("\n");
foreach $i (@INC){
print ("$i\n");
}
Of course the main module still does not work, so I need dig some more.
Phil
Adriano Ferreira wrote:
> On Feb 1, 2008 12:13 PM, Phil Kirsch <phil at scharp.org> wrote:
>
>> I'm trying to bring some perl code into a new client's environment and
>> find that they don't have Getopt::Std. I'm not finding it on CPAN. I'm
>> finding "Getopt-Std-With-Check" (which also requires Getopt::Std) and a
>> lot of other variants, but when I search for "Getopt::Std" on CPAN the
>> only available downloads seem to be Perl-5.10.0. I realize the module
>> might be incorporated in the new version, but I'm really not wanting to
>> move to that.
>>
>> Can anybody tell me where to find the "Getopt::Std" module?
>>
>
> That's weird as Getopt::Std is part of the official distribution of
> Perl since forever. That's what corelist says:
> ###
> $ corelist Getopt::Std
>
> Getopt::Std was first released with perl 5
> ###
> As the module is not available in its own distribution (like a dual
> life module), you may use directly the source from
>
> http://search.cpan.org/src/RGARCIA/perl-5.10.0/lib/Getopt/Std.pm
>
> This is a pure Perl code with the only prerequisite on Exporter (which
> hopefully your clients will have installed -- but at least Exporter is
> at CPAN now).
>
> You may write a minimum Makefile.PL to get it installed in the
> client's machine. Something like
>
> # Makefile.PL
> use ExtUtils::MakeMaker;
> WriteMakefile(
> NAME => 'Getopt::Std',
> VERSION_FROM => 'Std.pm',
> );
>
> # MANIFEST
> Makefile.PL
> Std.pm
>
> with the dist layout shown in the example MANIFEST file above.
>
> Regards,
> Adriano Ferreira
>
>
>
>> Thanks!
>>
>> Phil Kirsch
>> _____________________________________________________________
>> Seattle Perl Users Group Mailing List
>> POST TO: spug-list at pm.org
>> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>> MEETINGS: 3rd Tuesdays
>> WEB PAGE: http://seattleperl.org/
>>
>>
More information about the spug-list
mailing list