From: "Mystik Gotan" <[EMAIL PROTECTED]>
> I'm in search for a solution. Let's say I have this array:
>
> @array (5, 6, 7, 89, 1, 0, 456, 298023, 56);
>
> Now, how can I get the biggest integers from this array and give them
> a string with their place. Let's say I have a foreach loop where I
> checked all the biggest integers (however, I don't know how) and I
> give them all a string like:
>
> $website_76 = 1; # position 1
> $website_87 = 2; # position 2
You do NOT want to create variables like this on the fly. You want to
use either an array or a hash.
Please read:
Why it's stupid to `use a variable as a variable name'
http://www.plover.com/~mjd/perl/varvarname.html
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]