in reply to Removing duplicates in Array of Array
Oh, and your array initialization is completely broken.
I thought (like GrandFather above) that there was something wrong with
my @array; push @{@array},["1", "1", "3"]; push @{@array},["1", "5", "6"]; push @{@array},["1", "1", "3"];
But your code runs fine, even using strict, and generates no warnings.
I wondered if the @array inside the curlies was being evaluated in scalar context or as the literal '@array', but no. As far as I can tell with Data::Dumper, these statements populate @array.
Never mind what you were trying to do, can any of our brethren explain what you've actually done?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Amazing syntax of push (was Re: Removing duplicates in Array of Array)
by BrowserUk (Patriarch) on Sep 04, 2008 at 07:07 UTC | |
by parv (Parson) on Sep 04, 2008 at 07:58 UTC | |
|
Re: Amazing syntax of push (was Re: Removing duplicates in Array of Array)
by parv (Parson) on Sep 04, 2008 at 05:14 UTC | |
by ikegami (Patriarch) on Sep 04, 2008 at 08:31 UTC | |
|
Re: Amazing syntax of push (was Re: Removing duplicates in Array of Array)
by GrandFather (Saint) on Sep 04, 2008 at 05:02 UTC |