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.
> *
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
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 );
**