Hello YehorM,

Welcome to the Monastery. I would like to add a minor suggestion that might be your case that you are having.

As fellow Monk karlgoethebier you have a script named test.pl sample of code:

#!/usr/bin/perl use strict; use warnings; use feature 'say'; say "Hello World";

I assume that you are executing the script like this: perl test.pl in the same directory as you script.

I am not sure if you know what I mean, so here is an example to find in linuxOS, if you are running the script in the correct path/directory. Sample of code:

$ ls -la | grep test.pl -rw-r--r-- 1 user user 118 Nov 27 14:47 test.pl -rw-r--r-- 1 user user 475 Nov 22 12:37 test.pl~

I can only imagine that you are getting an error code like:

$ perl thanos.pl Can't open perl script "thanos.pl": No such file or directory

This error occurs because in the directory that I am currently there is no script named thanos.pl so Perl can not execute anything.

P.S. Why you installed UbuntuOS on a virtual machine, is it only to be able to run Perl scripts? If this is the case you can execute Perl scripts in WindowsOS also, see here Perl Download for more information. Also read this article dedicated to BioPerl on how to install it. I think this is where you should be focusing.

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

In reply to Re: Can't find perl script by thanos1983
in thread Can't find perl script by YehorM

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.