Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: If I found the source code for the Universe, the first thing I'd do:

by perldigious (Priest)
on Nov 01, 2016 at 18:02 UTC ( [id://1175075]=note: print w/replies, xml ) Need Help??


in reply to Re^3: If I found the source code for the Universe, the first thing I'd do:
in thread If I found the source code for the Universe, the first thing I'd do:

I firmly believe that if I knew back then, what I know now, the money would have taken care of itself.

I'd be foolish to disagree, but I think life would be so much simpler if:

my $goal = "what is to be accomplished?"; my @tasks = qw( all the necessary steps to get there ); if ( absolutely_necessary($goal) ) { do work(@tasks) or die "$!, but the rest of us forge on"; } elsif ( want_to_accomplish($goal) ) { do work(@tasks); }

Could be reduced to:

my $goal = "what is to be accomplished?"; my @tasks = qw( all the necessary steps to get there ); do work(@tasks) if ( want_to_accomplish($goal) );

Everybody writes their own sub work and sub want_to_accomplish of course. I suppose even sub absolutely_necessary is subjective in part, but there is apt to be a great deal of commonality there. Besides, isn't completely eliminating it a nice thought? The disappearance of the or die is a nice (or possibly horrifying?) thought too. :-)

Just another Perl hooker - will code for food

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1175075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found