in reply to Somersaulting camel

Is there a reason you use the unsightly-long name "system" instead of backticks ($^O=~Win?`CLS`:`clear`;)? Does it get "Eye-dropped" in less characters? If you're hard-pressed for characters, you could probably also get away with $^O=~W to test for Windows -- I can't think of another system with a capital 'W' in its name off-hand.


Replies are listed 'Best First'.
Re: Re: Somersaulting camel
by eyepopslikeamosquito (Bishop) on Jun 28, 2002 at 09:03 UTC

    Thanks for the suggestions! I will see if I can use them to squeeze more out of a solution that I thought was dry as a raisin. BTW, I am not a good golfer, miles behind the great Ton Hospel and Mtv Europe, that's why I keep prodding better golfers to help me. I had thought of using backticks but doubted it is portable to Windows 98 because I think you have to do it like this.


    and I don't think >&2 is portable to Win98. Still, who cares about that? ;)