Re: While query

From: A. Sinan Unur (usa1_at_llenroc.ude.invalid)
Date: 10/02/04


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.



Relevant Pages

  • Re: Guns
    ... I work in a facility with the criminally insane. ... I do worry but at work I know who's ... tend to worry more at the mall. ... that a person can take a gun to work just boggles my mind. ...
    (rec.music.makers.guitar.acoustic)
  • Re: Worth Posting...
    ... opponent and have no gun, ... I don't worry anyway, as I usually post the cite along with it. ...
    (talk.politics.guns)
  • Re: Worth Posting...
    ... police a detailed report of the robbers and their car. ... opponent and have no gun, ... I don't worry anyway, as I usually post the cite along with it. ...
    (talk.politics.guns)
  • Re: Its not criminals with guns we should worry about---
    ... > criminals -- your lack of worry has led to your ... > fellow subjects becoming so fearful of criminals ... gun control means using both hands. ... The law only applies to law abiding citizens. ...
    (soc.men)
  • Re: Mary Winkler: Still Walking Around Free, Could Serve Only 7 Months!!!
    ... No need to worry. ... The fact that Kenneth Hinton was acquitted on South ... "We both knew he had a gun. ... "The only duct tape that was bit off was the duct tape around my hands. ...
    (alt.true-crime)