Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Alias (5735)

Alias
  (email not shown publicly)
http://ali.as/

Journal of Alias (5735)

Tuesday October 23, 2007
12:37 AM

With apologies to New Zealand...

[ #34736 ]

Discovered in the core data model code for a giant 200k line of Perl application at work...

    my @states = qw(ACT NAT NSW NT QLD SA TAS VIC WA NZ);
    my $senum = 'enum(' . join( ',', map "'$_'", @states ) . ')';

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • NZ's not part of the US, and all states abbreviations are 2 letters long, so I suspect the rest of those are incorrect too.