Hi guys, I'm new here and wish to say hello to everybody. I have 2 questions, and would be happy if someone could help me with that.

QUESTION A :

I'm a perl coder since some years, the point is that now i'm going to write a pretty big software. I always have been used to write the script on a single file. Now, that the software has different sections, i wanted to write it on multiple files. For example, in PHP you can write the software in a lot of pages, including them etc etc etc. How can you do the same thing in Perl ? Let's think at this : i want the file A.pl to be assigned for certain things and B.pl for other things ... how can i make them to work together ?

QUESTION B :

In a part of the software im writing, at a certain point there is a function that start to do things, is an operation that could take 10 minutes also .. if a user wants to stop this operation, for my knowledges, he should just stop the program with ctrl+c .. i dont' want that to happend because is stupid. Is there a way to let the user stop an operation ? Since the software does not have a GUI where the user can do more things at the same time .. How could I do that ? Is possible to make the script doing that function and at the same time wait for the user input, and maybe if the user press some keys on the keyboard the process just stop loading and comes back the the main part of the program ? Thank you guys, I would really appreciate if someone could help me with these problems i have.

Giovanni


In reply to Perl software on multiple files by testerG

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.