develooper Front page | perl.beginners | Postings from May 2008

Re: how to simplify this script

Thread Previous | Thread Next
From:
itshardtogetone
Date:
May 3, 2008 16:03
Subject:
Re: how to simplify this script
Hi Gunnar and Members

I am very thrilled with your solutions. Is 'LOOP' as in ====>> LOOP: foreach 
( @datas ) { <<=========
a function or a command etc. I could not find this function in 
http://perldoc.perl.org/index-functions.html#L

Thanks



----- Original Message ----- 
From: "Gunnar Hjalmarsson" <noreply@gunnar.cc>
To: <beginners@perl.org>
Sent: Sunday, May 04, 2008 4:22 AM
Subject: Re: how to simplify this script


> As usual, hashes can be useful to simplify things. In the code suggestion 
> below I made use of the 'array of hashes' @numbers.
>
>     my $numbers_wanted = 2;
>     my ( @datawanted, @numbers );
>
>     LOOP: foreach ( @datas ) {
> 


Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About