Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Array: inserting what isn't there

by ehdonhon (Curate)
on May 30, 2003 at 21:47 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-16 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found