andrew clarke wrote:
> On Wed, Mar 07, 2007 at 09:31:03AM -0800, naveen kumar wrote:
> 
>> I just want to know that how do we execute a command like ls or split
>> command by writing a simple perl script.Pls do explain both ls and split
>> command as an example if possible.And not from the command line.Pls do
>> reply with an example.thanks in advance.
> 
> This is not a mailing list for Perl questions.  I'm not very familiar
> with Perl, but you can probably find the answer using Google.
> 
> Additionally, please put one or two spaces after each English sentence
> you write.  Then your message will be a lot easier to read.
> 
> Also, use "please", not "pls".
> 
> Also, wrapping your text at 80 characters is probably too much to ask,
> but it's a good idea.

Haven't used perl in a long time, but look at the backtick ` operator. 
Quick Google search for "Perl backtick" turned up:

http://www.troubleshooters.com/codecorn/littperl/perlspaw.htm

As the second link.  system() also works.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* VerifyMyPC 2.2
Change tracking and management tool.
Reduce tech. support times from 2 hours to 5 minutes.

Free for personal use, $10 otherwise.
http://www.CubicleSoft.com/VerifyMyPC/

Reply via email to