in reply to randomiseLines

See the Cookbook recipies 8.7 and 4.17.

Writing correct shuffling programs is tricky. Looks like yours might have key collision issue. I've learned to trust the cookbook when I'm not sure.

-Blake
p.s. Are the above links legitimate? I've never been there before (since I have my dogeared cookbook right here.) Does O'Reilly really condone the CD bookshelf being put on a public webserver like this?

Update: Guess I got my question answered... Removed links to recipies. (There actually are books out there that encourage this type of usage. In fact, at least one of them is published by O'Reilly, if I'm not mistaken.) I stumbled on to the bookshelf site when I went looking for the code ftp site. Didn't know if it was legit or not. Sorry.

Replies are listed 'Best First'.
Pirating Books is _BAD_
by davorg (Chancellor) on Jun 01, 2001 at 14:23 UTC
    Does O'Reilly really condone the CD bookshelf being put on a public webserver like this?

    See this entry from gnat's journal at use Perl; - Pirate Books.

    So, I guess the answer is "No".

    I also think that posting links to sites like this on Perlmonks is a really bad idea and would suggest that you remove them from your post.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me