When does RAM become an issue?

Sooner or later

How would I adapt this solution to refer to a separate input file?

Read perlintro you can't skip that

What would be the best reference source, for purposes of interpreting the few Perl codes suggested in that solution?

Combine ppi_dumper with Perl documentation / Modern Perl and super search/Tutorials...

$ ppi_dumper code.pl PPI::Document PPI::Token::Comment '#! perl -slw\n' PPI::Statement::Include PPI::Token::Word 'use' PPI::Token::Whitespace ' ' PPI::Token::Word 'strict' PPI::Token::Structure ';' PPI::Token::Whitespace '\n' PPI::Token::Whitespace '\n' PPI::Statement::Variable PPI::Token::Word 'my' PPI::Token::Whitespace ' ' PPI::Token::Symbol '@array' PPI::Token::Whitespace ' ' PPI::Token::Operator '=' PPI::Token::Whitespace ' ' PPI::Token::Word 'split' PPI::Token::Whitespace ' ' PPI::Token::Quote::Single ''term'' PPI::Token::Operator ',' PPI::Token::Whitespace ' ' PPI::Token::Word 'do' PPI::Structure::Block { ... } PPI::Token::Whitespace ' ' PPI::Statement::Variable PPI::Token::Word 'local' PPI::Token::Whitespace ' ' PPI::Token::Magic '$/' PPI::Token::Structure ';' PPI::Token::Whitespace ' ' PPI::Statement PPI::Token::Operator '<' PPI::Token::Word 'DATA' PPI::Token::Operator '>' PPI::Token::Whitespace ' ' PPI::Token::Structure ';' PPI::Token::Whitespace '\n' PPI::Statement PPI::Token::Word 'shift' PPI::Token::Whitespace ' ' PPI::Token::Symbol '@array' PPI::Token::Structure ';' PPI::Token::Whitespace ' ' PPI::Token::Comment '## Discard leading null' PPI::Token::Whitespace '\n' PPI::Token::Whitespace '\n' PPI::Statement PPI::Token::Word 'print' PPI::Token::Whitespace ' ' PPI::Token::Quote::Single ''---'' PPI::Token::Operator ',' PPI::Token::Whitespace ' ' PPI::Token::Quote::Double '"\n"' PPI::Token::Operator ',' PPI::Token::Whitespace ' ' PPI::Token::Magic '$_' PPI::Token::Operator ',' PPI::Token::Whitespace ' ' PPI::Token::Quote::Double '"\n"' PPI::Token::Whitespace ' ' PPI::Token::Word 'for' PPI::Token::Whitespace ' ' PPI::Token::Symbol '@array' PPI::Token::Structure ';' PPI::Token::Whitespace '\n' PPI::Token::Whitespace '\n' PPI::Statement::Data PPI::Token::Separator '__DATA__' PPI::Token::Whitespace '\n' PPI::Token::Data 'term {\nyada yada\n12345\n() ...\n}\n\nterm + only occurs here {\ncould be 30 lines here\nbut never that word agai +n until\nanother block starts\nyadada\n}\n\nterm, etc.'

So operator, __DATA__, local, $_, $_...

Which version of Perl should I install, to run this code?

It will run on any perl that starts with a "5." , anything released in the last 20+ years


In reply to Re: Learning Perl by Doing by Anonymous Monk
in thread Learning Perl by Doing by raywood

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.