in reply to Found a Perl hole

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^2: Found a Perl hole
by osunderdog (Deacon) on Jan 27, 2005 at 17:48 UTC

    Just a few comments

    @types[++$#types] = chr $temp;

    this can be written:

    push(@types, chr $temp);

    @types is an array. So @types[2] is an array slice with one item. Perhaps you're trying to access the third element of the array? In which case you would access that item using $types[2]


    "Look, Shiny Things!" is not a better business strategy than compatibility and reuse.

Re^2: Found a Perl hole
by hardburn (Abbot) on Jan 27, 2005 at 17:43 UTC
    randChar - The sub-routine will randomize the specified characters from the argument values and randomize which character to use for the set.

    Try String::Random.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Re^2: Found a Perl hole
by runrig (Abbot) on Jan 27, 2005 at 18:01 UTC
    Look at lines 186 to 218 to where it's going on.

    ...154. 155. 156. 157. 158. 159. 160. 162. Ack, darn, lost count. I'll have to get back to you later. (please try to post a smaller example next time :)