Hello All,

Just a quick question on deleting files in Perl.

I am trying to delete some files in a directory, but I do not know their
names...just ending extension...

I have tried:


One way:

unlink <*.dat>;
unlink <*.p1>;

Another way:

unlink glob(".dat");
unlink glob(".p1");

I have thought of popping out to the operating system as well, and deleting
files as well, but would rather stay in Perl.

Any help would be greatly appreciated..

Thank You,
Mike

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

Reply via email to