in reply to Re: Need help assembling a list
in thread Need help assembling a list

JavaFan I haven't used say or shuffle, but shouldn't it be the following?

use 5.10; use List::Util qw[shuffle];

Replies are listed 'Best First'.
Re^3: Need help assembling a list
by JavaFan (Canon) on Jan 27, 2009 at 16:35 UTC
    but shouldn't it be the following?
    use 5.10;
    No:
    $ perl -M5.10 -e1 Perl v5.100.0 required (did you mean v5.10.0?)--this is only v5.10.0, +stopped. BEGIN failed--compilation aborted.
    use List::Util qw[shuffle];
    You are correct. shuffle is found in List::Util, not Scalar::Util.

      Ah, now I see there are many ways to enable say, including yours:

      use 5.010; use 5.10.0; use feature ':5.10.0'; use feature 'say';

      Or even -E on the command line.