note
andreychek
Well, assuming that you are still looking to use the 'system' function that we talked about [id://93302|yesterday], you would simply do:
<code>
my @args = ("deltree", "/y", 'c:\pathname')
system(@args) == 0 or die "system @args failed: $?";
</code>
However, since you did ask about a very similar question yesterday, you really should get into the habit of reading the documentation. Perl comes with a lot of good docs, and they're also available on the web. Looking up the [system] command in the documentation willl yield all this and more. But of course, if you ever have trouble understanding anything you read, or aren't sure where to look, by all means ask. Good luck!<br>
-Eric<br><br>
<b>Update:</b> With [tachyon]'s suggestion, I changed the quotes in the @arg variable for the pathname from double to single quotes, to keep \p from interpolating into something interesting that we don't really want :-) Thanks, [tachyon]++
93581
93581