Randal L. Schwartz wrote:
>>>>>> "Daniel" == Daniel A Ramaley <[email protected]> writes:
>>>>>>             
>
> Daniel>     chdir "/path-to-dir";
>
> You didn't check the success of the chdir.  This will ruin your original
> current directory if that fails...
>
> Daniel>     unlink <*>;
>
> Oops!
>
> The proper solution is rmtree, a function defined in File::Path:
>
>   use File::Path;
>   rmtree('/path-to-dir');
>
>   

You're right.  You're so right, in fact, that I'd already changed the 
code; even I noticed that my original was bad practice.

But my real problem was getting the download to work inside a script, 
and none of the presented ideas so far have helped that.

Ed

[demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a 
name of eagirard.13018DEFANGED-vcf]

Reply via email to