use open ':std', OUT => ':utf8'; use constant TIMEOUT => 3; use constant MAXTRIES => 30;
./4.triton.pl: line 1: use: command not found
3: empty 30: empty :utf8: empty
By itself, Linux can only run ELF executables and text files containing a special header with a path to the interpreter (but see also binfmt_misc). When you try to run a file that's neither of there two things, the shell makes one last try to run a text file as a shell script. (If it wasn't a text file, you would get cannot execute binary file: Exec format error instead. I'm not sure how shell discerns between these two, but I think that it looks for null bytes.)

If you paste use open ':std', OUT => ':utf8'; in the shell, you would, indeed, get use: command not found and a new empty file named :utf8.

The solution would be to either add a #!/usr/bin/perl (or #!/usr/bin/env perl, whichever is more appropriate for your system) as the first line of the script or to run the script using perl 4.triton.pl instead.


In reply to Re^2: locating ultima thule by Anonymous Monk
in thread locating ultima thule by Aldebaran

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.