Re: While query
From: A. Sinan Unur (usa1_at_llenroc.ude.invalid)
Date: 10/02/04
- Next message: John W. Kennedy: "Re: Syntax appears inconsistent - why is this?"
- Previous message: Jeff 'japhy' Pinyan: "Re: While query"
- In reply to: Jeff 'japhy' Pinyan: "Re: While query"
- Next in thread: Paul Lalli: "Re: While query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 2 Oct 2004 15:14:40 GMT
Jeff 'japhy' Pinyan <pinyaj@rpi.edu> wrote in
news:Pine.SOL.3.96.1041002110656.3684C-100000@vcmr-86.server.rpi.edu:
> On 1 Oct 2004, A. Sinan Unur wrote:
>
>>use strict;
>>use warnings;
>>
>>my @array = ('hello', '');
>>
>>while(@array and my ($x) = pop @array) {
>> print "Popped: [$x]\n";
>>}
>
> Sorry, I jumped the gun. I didn't notice the parentheses around $x.
Don't worry about it. As Abigail also noted, I should have explained why &
how and pointed out the necessity of the paranthesses around the $x.
Otherwise, it is easy to miss them.
> Nice trick.
Thanks.
Sinan.
- Next message: John W. Kennedy: "Re: Syntax appears inconsistent - why is this?"
- Previous message: Jeff 'japhy' Pinyan: "Re: While query"
- In reply to: Jeff 'japhy' Pinyan: "Re: While query"
- Next in thread: Paul Lalli: "Re: While query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|