in reply to How do I read data passed to perl script
For the particular example you posted
is one way to do it. There are a few billion others.my $arg = shift @ARGV;
But, as you say, this is a very basic question, which makes me wonder, why are you trying to do this without learning the basics of Perl first? There are sources aplenty to do this. Trying to solve a programming problem by asking piecemeal questions like this one, without knowing the basics first, seems to me a crazy way to go about it. Are you under the gun to conjure up with some Perl code out of thin air?
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I read data passed to perl script
by husker (Chaplain) on Jun 07, 2005 at 14:04 UTC |