Jun. 28th, 2003

swestrup: (Default)
I would say that the inner workings of Perl were grotty, were it not that I know of many nice grottos far less grotty than perlguts.

So, my discovery of today is that the following code works:

eval{ use Foo::Bar }
eval{ use Foo::Bar } if $@;
eval{ use Foo::Bar } if $@;
die $@ if $@;

But this doesn't:

sub tryit($) { for(1..3){ eval $_[0]; return 1 if !$@ } die $@; }
tryit("use Foo::Bar");

Or, that is, it claims to work, but the exports of Foo::Bar are nowhere to be found...

Anyway, I finally realized I only called tryit 6 times in my code so I simply pasted in 6 copies of the first solution. One day I'll figure out what I SHOULD have coded, when I'm not under such deadline pressure.

Oh, and the above is necessary since, under Win98, if I fork two perl tasks and they load the SAME libraries, then every now and again one of the loads fails for no reason. Retrying twice seems to limit the scope of the problem. FIXING the problem is left as an excercise for the reader.

OOPS!

Jun. 28th, 2003 05:22 pm
swestrup: (Default)
Happy Deathday!
Your name:swestrup
You will die on:Saturday, November 29, 2025
You will die of:Alcohol Poisoning
Username:
Created by Quill


I guess I gotta start cutting down on the booze. I know that [livejournal.com profile] taxlady has been a terrible influence on my and has increased my alcohol consumption by about 100 fold, but I never expected it would kill me! Then again,... maybe I can stave off the problem by building up a tolerance! Yeah, thats the ticket. Pass the vodka!
swestrup: (nude)
The website is finally UP!!!! I can't show it to anyone at the moment, since its an automated questionaire for TorCon panelists, but its up, and I can rest tomorrow.

The idea of a VCD/movie/dragon-half/skinny-dipping/VCR/Wallace&Grommit marathon at [livejournal.com profile] denizsarikaya's place tomorrow sounds good. I prolly won't wake until noon, considering I'm not in bed yet and I've been up 25 hours, but it shouldn't take me long to get there after that. Of course, I'll check e-mail and notices here to see that its actually happening.

Whee!

January 2017

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 4th, 2026 06:28 pm
Powered by Dreamwidth Studios