Re: foreach confusion

2001-05-22 Thread Paul
> At 07:47 PM 5/22/01 -0400, David Gilden wrote: ># is the ',' correct in my($a,$b) can you use a space my($a $b @c) I missed this the first time. NEVER my() $a and $b. If you're using them as variables in your code, make better names. If you're using them as elements in a sort routine, then yo

Re: foreach confusion

2001-05-22 Thread Paul
--- David Gilden <[EMAIL PROTECTED]> wrote: > As an exercise here I want to play with this for a few minutes, > and have a few basic questions > > #!/usr/bin/perl > > # First question do I use > # ( ) OR { ... } > @lines = qq{dave john mike drew}; It's not that simple, and it's simpler

Re: foreach confusion

2001-05-22 Thread Paul
--- David Gilden <[EMAIL PROTECTED]> wrote: > As an exercise here I want to play with this for a few minutes, > and have a few basic questions > > #!/usr/bin/perl > > # First question do I use > # ( ) OR { ... } > @lines = qq{dave john mike drew}; It's not that simple, and it's simpler

Re: foreach confusion

2001-05-22 Thread Peter Scott
At 07:47 PM 5/22/01 -0400, David Gilden wrote: >As an exercise here I want to play with this for a few minutes, >and have a few basic questions > >#!/usr/bin/perl > ># First question do I use ># ( ) OR { ... } In the below, either, they are just delimiters. However, given what I am intui