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

Re^2: Deleting Directories from a path by reading information from Database columns

by Anonymous Monk
on Dec 29, 2010 at 00:01 UTC ( #879540=note: print w/ replies, xml ) Need Help??


in reply to Re: Deleting Directories from a path by reading information from Database columns
in thread Deleting Directories from a path by reading information from Database columns

Hi, I tried your code and it is showing the following errors:
Use of uninitialized value in concatenation (.) or string at ./db0.pl line 29.

Use of uninitialized value in concatenation (.) or string at ./db0.pl line 29.

Undefined subroutine &main::remove_tree called at ./db0.pl line 35.

line 29 is : my $directory = "$base_directory/$folder/$subfolder";


Comment on Re^2: Deleting Directories from a path by reading information from Database columns
Re^3: Deleting Directories from a path by reading information from Database columns
by Anonymous Monk on Dec 29, 2010 at 00:25 UTC
    You need to import remove_tree, as I said in an earlier post.

    And can you please do the most rudimentary of debugging to see what is undefined? Obviously your data doesn't look like you think it does.

      Hi, Based on the script above all the values are initialized. So not sure why these errors are coming up and I changed remove_tree to rmtree.

      so it is going to the $basedirectory location and deleting the whole thing

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-12-22 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls