[ale] perl -e
Lists
lists at serioustechnology.com
Wed May 7 13:34:03 EDT 2014
Yup, that was the solution. Thanks to you and Ed.
Geoffrey Myers
> On May 7, 2014, at 12:51 PM, Brian Mathis <brian.mathis+ale at betteradmin.com> wrote:
>
> Take a look at the '-s' option, which may do what you need, sort of, but it looks like using "--" will probably be what you are looking for. perldoc perlrun
>
> Also, instead of reinventing the wheel, take a look at the standard modules: Getopt::Std and Getopt::Long. These are built-in and you should not need to install via CPAN. You can use them from the command line like:
> perl -MGetopt::Long -e'...' -- -opt1 -opt2
>
>
> ❧ Brian Mathis
>
>
>> On Wed, May 7, 2014 at 9:34 AM, Lists <lists at serioustechnology.com> wrote:
>> So, I've written a perl subroutine that uses getopts. I can call this subroutine from a perl script fine. What is like to do is call it from a shell script via 'perl -e'. I know I can pass parms to the subroutine as such:
>>
>> perl -e '...' Args here
>>
>> And the routine will see them via ARGV. If I try to pass flags (-f) they are apparently passed to perl rather than the module.
>>
>> Solutions?
>>
>> Geoffrey Myers
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20140507/ac3b1393/attachment.html>
More information about the Ale
mailing list