in reply to Re: conditional self-execution
in thread conditional self-execution
Nope, didn't try it -- because in Ruby, __FILE__ is a variable (or constant, or something to that effect, unless I'm grossly mistaken), and in Perl it cannot be a variable thanks to the fact there's no leading sigil. I guess maybe I should have tried it anyway, on the wild-ass guess that maybe it'd magically work somehow regardless of my apparently false assumptions.
I'd been searching for anything and everything I could think to search for that might give such information, using Google, since it didn't occur to me that there'd be a whole class of variable-like things called "special literals" in Perl.
Anyway, thanks for pointing that out.
|
- apotheon
CopyWrite Chad Perrin |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: conditional self-execution
by GrandFather (Saint) on Jan 28, 2008 at 03:33 UTC | |
by apotheon (Deacon) on Jan 28, 2008 at 03:41 UTC | |
by blazar (Canon) on Jan 29, 2008 at 09:59 UTC | |
Re^3: conditional self-execution
by Anonymous Monk on Jan 28, 2008 at 08:10 UTC | |
by apotheon (Deacon) on Jan 28, 2008 at 08:13 UTC | |
by cdarke (Prior) on Jan 28, 2008 at 09:25 UTC | |
by halley (Prior) on Jan 28, 2008 at 15:49 UTC | |
by apotheon (Deacon) on Jan 28, 2008 at 10:21 UTC |
In Section
Seekers of Perl Wisdom