Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Apr 2010 14:17:06 -0700
From:      merlyn@stonehenge.com (Randal L. Schwartz)
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: perl qstn...
Message-ID:  <867hoop771.fsf@red.stonehenge.com>
In-Reply-To: <20100403210610.GA4135@thought.org> (Gary Kline's message of "Sat, 3 Apr 2010 14:06:13 -0700")
References:  <20100403210610.GA4135@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Gary" == Gary Kline <kline@thought.org> writes:

Gary> if a .pl script has to have at least one arg, is there an easy
Gary> way to do that?

Dare I say, "there's more than one way to do it?" :)

See the "Getopt::" family in the CPAN.

My favorite is Getopt::Long.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>;
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867hoop771.fsf>