Re: Understanding list creation...

2002-11-05 Thread John W. Krahn
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

Re: Understanding list creation...

2002-11-05 Thread LRMK
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) =

Re: Understanding list creation...

2002-11-05 Thread David Buddrige
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

Re: Understanding list creation...

2002-11-05 Thread Jean Padilla
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

Understanding list creation...

2002-11-05 Thread David Buddrige
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