Shawn H Corey <shawnhco...@gmail.com> writes:

> Harry Putnam wrote:
>> So it needs to be up to the user but most often any files in the
>> directory will not be of concern.

In fact, thinking about that.... the script should not only ask
permission, but should probably should offer to clear the directory
before making any symlinks, since that is most often what will be
desired.

> Well, if you're not worried about hidden files, you could use glob:
>
> my $count = scalar glob( "$dir/*" );

ahh.. cool.  Leave File::Find out of it for that part.  Certainly not
needed there..  Good plan I think.

And you are right. Hidden files aren't a problem at all.  Or at least
not any more than they ever are.

None of the incoming will ever by dot files, its aimed at Mail/News
files in 1 message per file format, with numeric names only.

Thanks... and thanks to all posters on this.

I've got something from each post that will make the script better.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to