On Mon, 6 Aug 2001, Chris Garaffa wrote:

> Hello everyone. I just joined the list, but I checked the archive earlier
> to see if this was covered. Sorry if I missed it.
>
> My question is regarding UNIX commands. I know you can get the output of a
> command using the ` notation. My script has this line:
> my $command = `mv /$formdata{name}.html /Library/WebServer/Document/About/
> $formdata{name}.html`;
> I get no errors, but the file isn't moved, either. Is there a way to do
> this in perl?
> I was thinking of calling a shell script using the ` notation, but I have
> no experience in shell scripting, so I don't want to dive too deeply into
> that if there's a way to do it in perl.
>
> I'm running MacOS X 10.0.4, if it matters.

Assuming Perl on OS X works like Perl on other Unix-based systems, you
should be able to use the move and copy commands in File::Copy.  See the
appropriate perldoc on this module.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
You may be infinitely smaller than some things, but you're infinitely
larger than others.


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

Reply via email to