Ackim,
Ackim Chisha wrote:
>In a shell script I can read the value as $1, how do I read it in perl.
>In C++ i can read the value using argv[1] , how can I read this same
>value in perl, instead of having to have shell script pass it to perl in
>form of a file.
It's very similar to the C++ method you mention; Perl stashes the
command line arguments in the @ARGV array. First argument is
$ARGV[0], second $ARGV[1], etcetera.
Hope that helps,
John
--
John Fox <[EMAIL PROTECTED]>
System Administrator, InfoStructure, Ashland OR USA
---------------------------------------------------------
"What is loved endures. And Babylon 5 ... Babylon 5 endures."
--Delenn, "Rising Stars", Babylon 5
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]