Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Array: inserting what isn't there

by ehdonhon (Curate)
on May 30, 2003 at 21:47 UTC ( #261955=note: print w/replies, xml ) Need Help??


in reply to Array: inserting what isn't there

Sounds more like a hash problem than an array problem. This will give you the array you are looking for.

my %found; while ( my $item = find_next_number() ) { $found{$item}=1; } @array = map { "$_.found" } sort {$a <=> $b} keys %found;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://261955]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-05-28 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?