typically has asked for the wisdom of the Perl Monks concerning the following question:
This may be completely Ubuntu-related, so I apologize in advance, but I haven't had much luck on that forum yet, and there's a possibility that it's perl-related.
I have a simple perl script which wants to read all the folders in a directory on my external HDD using:
@subjects = grep { -d } glob ( "*" );
Doing this causes my HDD to go from writable to read-only. I.e., before I run the code I can create a directory in the terminal, but not directly afterwards. Also the commands I want to run from perl after enumerating the folders cannot write to the disk.
Just wondering if someone has a clue why this might happen, and whether it has something to do with perl itself...?? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: running perl script makes my external HDD read-only
by Corion (Patriarch) on Aug 26, 2008 at 12:31 UTC | |
|
Re: running perl script makes my external HDD read-only
by moritz (Cardinal) on Aug 26, 2008 at 12:32 UTC | |
by typically (Novice) on Aug 26, 2008 at 13:04 UTC |