in reply to Re: Re: Overwrite file protection
in thread Overwrite file protection
I'm sorry. I should explain what's going on behind the scene:
When you surround your filename expression (actually, a scalar holding the filename) with '<' and '>', what you get is a file glob. That's the name of this use of '<' and '>' surrounding a scalar designing a filename or something that looks like a file name set (think on it as the equivalent of using dir *.txt on the old D.O.S.).
File globbing is used to do strange (not that strange, indeed) things with sets of filenames.
The strange behavior of your script was because the file name globbing was working when you didin't like it to.
Maybe I should rewrite this comment, I feel that it may confuse you. If it do so, please let me know and I will try to fix it up
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Just Another Perl Monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Overwrite file protection
by Cody Pendant (Prior) on Jun 16, 2003 at 21:23 UTC | |
by monsieur_champs (Curate) on Jun 17, 2003 at 13:34 UTC |