From owner-freebsd-questions@FreeBSD.ORG Sat Apr 3 21:17:06 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFEA51065673 for ; Sat, 3 Apr 2010 21:17:06 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by mx1.freebsd.org (Postfix) with ESMTP id CC0108FC15 for ; Sat, 3 Apr 2010 21:17:06 +0000 (UTC) Received: by red.stonehenge.com (Postfix, from userid 1001) id 72BF75C86; Sat, 3 Apr 2010 14:17:06 -0700 (PDT) From: merlyn@stonehenge.com (Randal L. Schwartz) To: Gary Kline References: <20100403210610.GA4135@thought.org> x-mayan-date: Long count = 12.19.17.4.7; tzolkin = 12 Manik; haab = 0 Pop Date: Sat, 03 Apr 2010 14:17:06 -0700 In-Reply-To: <20100403210610.GA4135@thought.org> (Gary Kline's message of "Sat, 3 Apr 2010 14:06:13 -0700") Message-ID: <867hoop771.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Mailing List Subject: Re: perl qstn... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2010 21:17:07 -0000 >>>>> "Gary" == Gary Kline 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 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion