http://qs321.pair.com?node_id=1233417


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

I use the command line because later on, I am going to port exercises from the O'Reilly book Data Science at the Command Line to Perl. This nonsensical idea that Perl is unsuited for "data science" tasks (which is really data cleaning/munging) needs to be refuted.

Data Science at the Command Line link

I think this ability to do quick things at the command line is an advantage that Perl has over Python.

You do bring up a good point about the quoting. How should I make this more general, to make clear these one-liners work (with some modification) on all systems that have Perl and PDL installed?

  • Comment on Re^2: RFC: 101 Perl PDL Exercises for Data Analysis

Replies are listed 'Best First'.
Re^3: RFC: 101 Perl PDL Exercises for Data Analysis (perl debugger as REPL)
by LanX (Saint) on May 07, 2019 at 11:13 UTC
    You might be interested to use the Perl debugger as REPL

    perl -MPDL -de0

    You'd have less typing and others could easily copy.

    And you can also dump edit history when needed.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Re^3: RFC: 101 Perl PDL Exercises for Data Analysis
by etj (Deacon) on Apr 30, 2022 at 14:16 UTC
    I would heavily recommend either perldl or pdl2 as REPLs, over the Perl debugger, because it's more specifically set up for PDL stuff; they both load PDL and PDL::NiceSlice, have a help system, a demo system, and facilitate multi-line commands including copy-paste support.