On Mon, Dec 10, 2007 at 04:54:49PM -0600, [EMAIL PROTECTED] wrote: > If my kind of extra baloney is slowing down the excecution when > taken as a whole .... that is many times more baloney when seen over > 300 lines or so than the shorter ways like you posted, then its > probably time for me to give up the long hand and start trying to go > the shorter more concise route.
I'd stick with what you are happy to maintain. Personally, I prefer conciseness since I can see more of what I'm trying to say in less space, and that just helps me when thinking about it. But being able to understand your code when you come back to it a few months later trumps that. > Can you show an example of how that new `//' operator works? I've got > that version built and installed in a test area and all set to be > shocked and amazed at new features... : ) my $x = 0; my $y; $x || warn "x is false"; $x // warn "x is undefined"; $y || warn "y is false"; $y // warn "y is undefined"; It will probably be used primarily for setting default values where the value passed in could legitimately be 0 or "". > Since all of what I do is either home use or on a webpage of mine. and > won't really cause anyone else (except maybe this list,,) a problem I > think I'll turn the new version loose on my scripts and see what turns > up. Over the yrs I've accumlated over 100 homeboy perl scripts (most > probably very poorly written and some haven't seen that much use). This would be absolutely wonderful test material for the new release! > It will be interesting to see if they all still work. It certainly would. And if you find any which don't, and the reason can't be tracked back to a problem in your code (or perhaps even if it can), please use the perlbug utility to report the problem. Thanks, -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/