How do you send commands to the terminal in a perl script?
For example, if I want to run the command mkdir $directory in the console, what do I type in the perl script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Modeling off the sample code in the documentation at http://perldoc.perl.org/functions/system.html:
Perl can make directories without
system()calls, but I assume you want to do other things and are just using mkdir as an example.