of course, there are many ways to do a job in perl. Its upto the implementer
to choose.
-Susheel
On Mon, Nov 10, 2008 at 10:40 PM, John W. Krahn <[EMAIL PROTECTED]> wrote:
> Susheel Koushik wrote:
>
>> use the PERL system command. Its a wrapper for system call on your host
>> OS.
>>
>> ex: syste
Doing what you propose is possible, but would take system resources and a
bit tedious.
Here's an alternate solution:
>From what I infer, you are processing on a file and then the code decides if
its a success or a failure and your job is to remove tmp files if it fails.
Here, when the processing
Susheel Koushik wrote:
use the PERL system command. Its a wrapper for system call on your host OS.
ex: system("rm *.tmp");
Why, when you can just do:
unlink <*.tmp>;
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in
use the PERL system command. Its a wrapper for system call on your host OS.
ex: system("mv $filename $new_location/$filename");
susheel
On Mon, Nov 10, 2008 at 4:39 PM, Susheel Koushik <[EMAIL PROTECTED]> wrote:
> use the PERL system command. Its a wrapper for system call on your host OS.
>
> e
use the PERL system command. Its a wrapper for system call on your host OS.
ex: system("rm *.tmp");
susheel
On Mon, Nov 10, 2008 at 3:32 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
> Hi Everyone,
>
> I have around 2000 files in a directory. During processing of these
> files, a temp* will b
Hi Everyone,
I have around 2000 files in a directory. During processing of these
files, a temp* will be created for each file and its removed after
processing that file. If the processing is unsuccessful, temp* file
still exists. Can u plz help me to write a script to automate this
process using P