You'll want to check the docs for the three most common, which are the
system(), exec(), and backticks ``.

Brief description:

system() -- executes the system command inside the parentheses and returns
the exit code of the command to the perl script.
exec() -- executes the system command inside the parentheses and exits the
script before the command completes.
backticks `` -- executes the system command between the backticks and
returns the text outputted by the command.
  E.g. my $result = `ls`;

-----Original Message-----
From: Vishal Kapoor [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: System commands..


thanx for the previous help ....
can we use system commands in a perl program , commands such as ls or grep
????
im sure we can , can someone point out how ???

Vishal Kapoor


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to