Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: RFC: 101 Perl PDL Exercises for Data Analysis

by reisinge (Hermit)
on May 07, 2019 at 13:30 UTC ( [id://1233428]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1233428]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-28 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found