in reply to Re: Re: Re: Web Site Mapper
in thread Web Site Mapper
We're probably not going to come to an agreement on this.
Note that a lot of people are still using perl 5.005 (constant.pm was first part of 5.6.0), and it wasn't that long ago that Debian and other GNU/Linux distros started installing something a little more recent by default. IIRC, some FreeBSD system scripts won't run on a more recent perl (this may have changed). So there are still a signifcant number of people out there that aren't even on 5.6.
When I'm coding on my main job, I use newer features of the language without a care, because I know we run a more recent version of perl. However, this script was meant for public consumption, which means avoiding newer things if possible (admittedly, I should also have used -w instead of use warnings).
Additional clarity can be gained with a simple # Constants comment above the subroutines in question. I didn't do this in the above code, but it wouldn't hurt.
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x5 Web Site Mapper (perl, use constant on FreeBSD)
by grinder (Bishop) on Feb 16, 2004 at 21:55 UTC |