in reply to Re: (Golf) Dependency List Prioritization
in thread (Golf) Dependency List Prioritization
This looks more like obfuscation to me. You declare a lexical that you don't use, and you use symbolic references ... and so your solution does not hold. Try this test harness:
my @list = ( a => [ 'r', 'c' ], r => [ 'c', 'd' ], c => [ 'd' ], e => [ 'r', 'a' ], f => undef, );
... and you get the following list:
'd','r','c','a','f','e'And of course, everything is even more undefined if any of your components are called '^H', 'INC, 'ENV', or 'SIG' :-)
Update: Is this a trick? Could tadman not wait until April 1st? It seems to me no other test harness will give the right answer here. The sort function always returns 0, since those hashes it access has never been set ... :-\
Nice choice of test harness, tadman!
The Sidhekin
print "Just another Perl ${\(trickster and hacker)},"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: (Golf) Dependency List Prioritization
by tadman (Prior) on Mar 14, 2002 at 21:19 UTC | |
by Sidhekin (Priest) on Mar 15, 2002 at 15:39 UTC |