|P is for Practical|
Re: large file issue?by Shendal (Hermit)
|on Oct 25, 2000 at 22:06 UTC||Need Help??|
Whenever you use system commands, you will want to make sure you check the exit status. Additionally, the error is stored in $!, and should give you an idea of why things are failing. Try something like this:
You may also want to use system in a list context, as it is faster and more secure, for example:
Lastly, your for loop isn't very perlish. You may want to try something like this:
Update: As runrig pointed out via the chatterbox, it ought to be and die after a system, since system returns 0 on success.
Update2: See merlyn's post RE: Re: large file issue?. $! is actually not what you want to look at.