tobold.org

correct • elegant • free

△ comp.lang.perl △

◅ Help creating usable modules

How to handle escaped newlines???? ▻

How to execute UNIX commands

In article <4jf6jg$nus@Sahara.enmu.edu>,
Nathan Burnett <burnettn@math.enmu.edu> wrote:
>How does one execute a UNIX command from a Perl script (specifically touch).

See `system' in the `perlfunc' man page.

>is there a perl statement that does the same thing as 'touch' does under UNIX.

No, but you can easily roll your own with `utime', again see the
`perlfunc' man page.

Tim
--
Tim Goodwin   | "continuous witter about large metal wanking
Cambridge, UK | machines" -- Robin Fairbairns, about uk.transport.

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.perl.misc
Subject: Re: How to execute UNIX commands
Date: 29 Mar 1996 17:09:29 GMT
Organization: Unipalm PIPEX
Message-ID: <4jh5g9$3k0@wave.news.pipex.net>
References: <4jf6jg$nus@Sahara.enmu.edu>

△ comp.lang.perl △

◅ Help creating usable modules

How to handle escaped newlines???? ▻