How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread Jeff Collins
I'm a perl newby. I'm looking on taking a command line argument from STDIN and use it for input to a script that upgrades software. Any examples would be greatly appreciated. Thanks = Jeffrey T. Collins [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder -

Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread wolf blaum
I'm a perl newby. me too:-) Right list, I assume. I'm looking on taking a command line argument from STDIN and use it for input to a script that upgrades software. Any examples would be greatly appreciated. @ARGV holds your command line arguments. call: scriptname.pl Universe 42 douglas

Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread Dan Anderson
On Thu, 2004-01-22 at 18:14, Jeff Collins wrote: I'm a perl newby. I'm looking on taking a command line argument from STDIN and use it for input to a script that upgrades software. Any examples would be greatly appreciated. STDIN is already open when your perl script starts so you can read in

Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread drieux
On Jan 22, 2004, at 3:39 PM, wolf blaum wrote: [..] call: scriptname.pl Universe 42 douglas 'Zappod Beblebrox' #! /usr/bin/perl use strict; use warnings; print You called me with , scalar @ARGV, Arguments.\n; if (@ARGV) { print Param to script: $_\n foreach (@ARGV); } My Compliments on a

Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread wolf blaum
My Compliments on a well done piece. OT: see, a logical problem I have with newsgroups is that you learn most (at least I do) by trying to explain things you think you understood to others - beginning explainers however make mistakes - Thats of course not what you want in a newsgroup,

The Challenge of Learning to Explain - Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread drieux
On Jan 22, 2004, at 5:56 PM, wolf blaum wrote: [..] Nevertheless Im happy it seems this is a group were you can even learn how to explain (and what the group-iquette is anyway). [..] Good point there. A part of the struggle is always sort out what the OP is really working with, and where are