in reply to RFC: 101 Perl PDL Exercises for Data Analysis

I think you should be using single quotes so shell stuff doesn't get expanded. And maybe -l to add a newline:

$ perl -MPDL -le '$arr = sequence(10); print $arr' [0 1 2 3 4 5 6 7 8 9]
In general, they do what you want, unless you want consistency. -- perlfunc

Replies are listed 'Best First'.
Re^2: RFC: 101 Perl PDL Exercises for Data Analysis
by thechartist (Monk) on May 07, 2019 at 15:30 UTC

    These examples were done on Strawberry Perl on Windows, that is why quotes are done that way. I may take LanX up on his recommendation to use the -de switch.

      In my experience, it's hard enough quoting things on the command line in *nix. 10x points for doing the same in Windows (with the quotes reversed and everything). Thank Larry (?) for q//, qq//, and qr// qw//!

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of