On Apr 28, 2004, at 1:50 PM, Shilpa Arvind wrote:

Hi,

In C programming language we have a function which looks like this:

main(int argc, char *argv[ ]).

Is there a equivalant function in Perl. I was looking at @ARGV but i feel it does not behave the same way as the above function does. I might be wrong.

@ARGV does handle command line arguments for Perl, if that's what you are getting at. It's a full Perl array, so you can easily get the count, if needed:


my $argc = @ARGV;

Hope that helps.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to