<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Yup, that was the solution. Thanks to you and Ed.&nbsp;<br><br><span style="font-size: 13pt;">Geoffrey Myers</span></div><div><br>On May 7, 2014, at 12:51 PM, Brian Mathis &lt;<a href="mailto:brian.mathis+ale@betteradmin.com">brian.mathis+ale@betteradmin.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div>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.&nbsp; perldoc perlrun<br><br></div>Also, instead of reinventing the wheel, take a look at the standard modules: Getopt::Std and Getopt::Long.&nbsp; These are built-in and you should not need to install via CPAN.&nbsp; You can use them from the command line like:<br>
</div>&nbsp;&nbsp;&nbsp; perl -MGetopt::Long -e'...' -- -opt1 -opt2<br><br><div><div><div><div class="gmail_extra"><br clear="all"><div>❧ Brian Mathis</div>
<br><br><div class="gmail_quote">On Wed, May 7, 2014 at 9:34 AM, Lists <span dir="ltr">&lt;<a href="mailto:lists@serioustechnology.com" target="_blank">lists@serioustechnology.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>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:</div>
<div><br></div><div>perl -e '...' Args here</div><div><br></div><div>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.&nbsp;</div><div><br></div>
<div>Solutions?<br><br><span style="font-size:13pt">Geoffrey Myers</span></div></div><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><br></div></div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org">Ale@ale.org</a></span><br><span><a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a></span><br><span>See JOBS, ANNOUNCE and SCHOOLS lists at</span><br><span><a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a></span><br></div></blockquote></body></html>