From owner-freebsd-questions@FreeBSD.ORG Sat Apr 3 21:06:18 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 57CD8106566B for ; Sat, 3 Apr 2010 21:06:18 +0000 (UTC) (envelope-from kline@thought.org) Received: from ethic.thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 196878FC18 for ; Sat, 3 Apr 2010 21:06:17 +0000 (UTC) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by ethic.thought.org (8.14.3/8.14.3) with ESMTP id o33L6Dm0072738 for ; Sat, 3 Apr 2010 14:06:14 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 3 Apr 2010 14:06:13 -0700 (PDT) Date: Sat, 3 Apr 2010 14:06:13 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20100403210610.GA4135@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 23 years of service to the Unix community. X-Spam-Status: No, score=-2.9 required=3.6 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on ethic.thought.org Cc: Subject: 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:06:18 -0000 guys, i'm finally trying to get my private scripts and binaries in ~/bin in order. several of my perl scripts were meant to be throwaway ... but a few seem to be more useful and i would have to have informational or usage{} type messages. if a .pl script has to have at least one arg, is there an easy way to do that? can i have a perl fn called usage() that would be fed various strings? tia, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php