Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Perl software on multiple filesby testerG (Initiate) |
on Sep 25, 2011 at 09:28 UTC ( [id://927727]=perlquestion: print w/replies, xml ) | Need Help?? |
testerG has asked for the wisdom of the Perl Monks concerning the following question:
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
Back to
Seekers of Perl Wisdom
|
|