Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: using a subroutine

by Jasper (Chaplain)
on Aug 09, 2004 at 08:36 UTC ( #381165=note: print w/replies, xml ) Need Help??


in reply to using a subroutine

Your call to remove will only ever remove the files from the last directory you read. @tmps = readdir(DIRS); should probably be push @tmps, readdir(DIRS);.

I second everyone else's comments about globals, etc..

Replies are listed 'Best First'.
Re^2: using a subroutine
by xjlittle (Beadle) on Aug 10, 2004 at 00:05 UTC
    Oops you're correct. Using
     push @tmps,readdirs(DIRS)
    didn't delete the tmp files either.
    Back to the drawing board...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://381165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2023-10-04 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?