UPDATE: this was an error in the OP code, not a Mac thing

Doesn't work for me on Mac OSX. It creates the file properly (determined in post-mortem) but hangs when trying to open the file with emacs.

[13:52][nick:~/monks]$ perl 1136223.pl Name of the new script : foo Language of foo script: perl Making a Perl script: foo.pl.test Add modules? ex: File::Basename; (use strict and use warning are turned on by default). [yes/no]: yes This script does NOT add a ';' for you! Say 'done' when you done.. Modules: Data::Dumper; done <-- hangs here <-- then after killing process: ----:---F1 *scratch* All L1 (Fundamental)------------------- +-------------------------------------------------------------- ": No such file or directory at 1136223.pl line 104, <STDIN> line 5. [13:54][nick:~/monks]$
The way forward always starts with a minimal test.

In reply to Re: RFC: newscript.pl , my very first script! by 1nickt
in thread RFC: newscript.pl , my very first script! by Darfoune

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.