Re: Dirty Arrays and how to clean them up!
perlmodule_at_gmail.com
Date: 03/12/05
- Previous message: Bob Walton: "Re: perl pattern matching"
- In reply to: ray d: "Re: Dirty Arrays and how to clean them up!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Mar 2005 13:49:25 -0800
Here is my attempt:
my %temp = ();
print grep !$temp{$_}++, ((1..10) x 5);
...which is essentially the same concept as you described, but just a
different approach.
- Previous message: Bob Walton: "Re: perl pattern matching"
- In reply to: ray d: "Re: Dirty Arrays and how to clean them up!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]