Re: Beginnner .. please help

2003-07-04 Thread John W. Krahn
Pandey Rajeev-A19514 wrote: > > Hi, Hello, > I am new to perl and need some help. > > How do we pass array of scalars to a subroutine. > I need something like this Perl creates a list of all the arguments of the sub and makes them available in the @_ array inside the sub. > *

Re: Beginnner .. please help

2003-07-04 Thread Jenda Krynicky
From: Pandey Rajeev-A19514 <[EMAIL PROTECTED]> > I am new to perl and need some help. > > How do we pass array of scalars to a subroutine. > I need something like this > > *** > sub ABC { > my(@buffer) shift; > print @buffer; my $buffer = shift; print @$buff

Beginnner .. please help

2003-07-04 Thread Pandey Rajeev-A19514
Hi, I am new to perl and need some help. How do we pass array of scalars to a subroutine. I need something like this *** sub ABC { my(@buffer) shift; print @buffer; } I want to call this subroutine from some other code like. ABC( @this_buffer ); **