[lug] Perl question

Ken Kinder ken at kenkinder.com
Wed Mar 14 17:33:38 MST 2001

First of all, use Python. It's better, and you probably have a bad archive.
Get the latest from python.org. There's never a good reason not to use
Python. :)

Your questions:

@ARGV I think stores those arguments, and strings and ints aren't
converted -- Perl dynamicly types them -- they are both scalar.

On Wed, Mar 14, 2001 at 05:07:27PM -0700, KELLEY SCOTT T wrote:
> Since I can't get Python to work on a Unix box (gunzip won't even
> uncompress the python .gz and there is not much Unix support for Python),
> I've been forced to program in Perl. Unfortunately, my Perl is rusty and I
> have completely forgotten how to do simple tasks.
> All I want to do is check whether some file names have been entered on the
> command line, and if not ask the user for the filenames. The name of the
> perl script is "blastem" so execution would look like this:
> >blastem [filename1] [filename2]
> or this
> >blastem
> Also I forget how to convert from strings to ints (e.g. '3' to 3).
> If you can refresh my memory, I would be grateful.
> Thanks for your help in advance! -Scott
> ------------------------------------------------------------------------------
> Scott T. Kelley, Ph.D.			E-mail: Scott.Kelley at Colorado.edu
> Dept. MCD Biology			Phone : 303-735-1808
> Campus Box 347				Fax   : 303-492-7744
> University of Colorado
> Boulder, CO  80309-0347
> U.S.A.
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

Ken Kinder

More information about the LUG mailing list