Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Answer: How can I find the index of the biggest element in an array?

by Jenda (Abbot)
on May 28, 2007 at 14:09 UTC ( #617843=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    while ($i--) {
      $max = $i if $data[$i] > $data[$max];
  2. or download this
    my $max = 0;
    for (0 .. $#data) {
        $max = $_ if $data[$_] > $data[$max]
  3. or download this
    my $max = 0;
    for (1 .. $#data) {
        $max = $_ if $data[$_] > $data[$max]

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617843]
Discipulus needs to virtualize a xp home machine..
[Discipulus]: someone has experience with this? as destiation i think i'll go with virtualbox on centos
[Lady_Aleena]: Why XP?
[Discipulus]: it is for my father: it is impossible to tell him to learn a newer OS
[Lady_Aleena]: To tell him or teach him?
Discipulus anyway xp is still the best lowend game machine
[Discipulus]: both: everyting must be identical in the new v-machine
[Lady_Aleena]: So putting a nice DE or WM up on a Linux machine is not an option?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-05-22 18:36 GMT
Find Nodes?
    Voting Booth?