tej has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks
I am reading somebody else's script and I found code like
while(-d $dest_book){ ##Some code }
What does "-d" means?
I also found
if(-f $path_browsefile){ ##Some code }
Here what is -f?
Are there more such options in perl?..If yes where can I find their reference?
Thanks
Update: Thank you Monks.. This was helpful :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What are -d and -f for?
by graff (Chancellor) on Aug 13, 2011 at 05:48 UTC | |
|
Re: What are -d and -f for?
by GrandFather (Saint) on Aug 13, 2011 at 06:16 UTC | |
by tej (Scribe) on Aug 13, 2011 at 06:19 UTC | |
|
Re: What are -d and -f for?
by Jim (Curate) on Aug 13, 2011 at 05:49 UTC | |
|
Re: What are -d and -f for?
by johngg (Canon) on Aug 13, 2011 at 15:12 UTC | |
|
Re: What are -d and -f for?
by Anonymous Monk on Aug 13, 2011 at 08:51 UTC |