David Buddrige wrote:
>
> Hi all,
Hello,
> I am reading through a collegue's perl script. In it he has the
> following lines:
>
> sub SomeSubName
> {
> my ($vara, $varb, $varc, @items) = @_;
> my ($itemtype, %symbol);
> ...
> }
>
> The first line I understand; here you
lt;[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 2:53 PM
Subject: Understanding list creation...
> Hi all,
>
> I am reading through a collegue's perl script. In it he has the
> following lines:
>
>
> sub SomeSubName
> {
> my ($vara, $varb, $varc, @items) =
beaut! thanks.
David. 8-)
Jean Padilla wrote:
Hi,
the second line is simply declaring two variables:
1 - the scalar $itemtype
2 - the hash %symbol
just another way to say
my $itemtype;
my %symbol;
no magic here, *NOT* a list or data structure.
A+
David Buddrige a écrit :
Hi all,
I am read
Hi,
the second line is simply declaring two variables:
1 - the scalar $itemtype
2 - the hash %symbol
just another way to say
my $itemtype;
my %symbol;
no magic here, *NOT* a list or data structure.
A+
David Buddrige a écrit :
>
> Hi all,
>
> I am reading through a collegue's perl script. In it
Hi all,
I am reading through a collegue's perl script. In it he has the
following lines:
sub SomeSubName
{
my ($vara, $varb, $varc, @items) = @_;
my ($itemtype, %symbol);
...
}
The first line I understand; here you are getting the parameters to the
subroutine (which are stored in @_), and