cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
I can see what is happening. But I don't know why? I don't understand why the _ doesn't have a sigil?my $filename = shift; return 'link' if (-l $filename); return 'file' if (-f _); return 'dir' if (-d _);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: _ doing something new to me?
by Lawliet (Curate) on Feb 28, 2009 at 01:32 UTC | |
|
Re: _ doing something new to me?
by hbm (Hermit) on Feb 28, 2009 at 01:52 UTC | |
|
Re: _ doing something new to me?
by missingthepoint (Friar) on Feb 28, 2009 at 02:27 UTC | |
|
Re: _ doing something new to me?
by cosmicperl (Chaplain) on Feb 28, 2009 at 02:05 UTC |