Hello all,

I have been a active state perl user on windows. There if I type
tele.pl params

on the console, the perl interperter automatically comes into play. also I can run this from anywhere so long as the directory which contains my tele.pl script is in the path.

Now I am on linux (mandarke 9.2, gnome 2.4) and I try to do the same thing (add my script directory to the path)

but I get a slew of errors

/mnt/windows/myapps/perl/hptele.pl: line 1: use: command not found : command not found/perl/hptele.pl: line 1: /mnt/windows/myapps/perl/hptele.pl: line 2: use: command not found : command not found/perl/hptele.pl: line 2: : command not found/perl/hptele.pl: line 3: /mnt/windows/myapps/perl/hptele.pl: line 4: my: command not found : command not found/perl/hptele.pl: line 4: : command not found/perl/hptele.pl: line 5: /mnt/windows/myapps/perl/hptele.pl: line 6: syntax error near unexpected token `defined' 'mnt/windows/myapps/perl/hptele.pl: line 6: `unless (defined($namePattern))

I will grately appriciate any help in this regard.

regards,
Abhishek.

In reply to assosiating .pl files with perl on linux by abhishes

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.