Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Somersaulting camel

by educated_foo (Vicar)
on Jun 28, 2002 at 08:08 UTC ( [id://177959]=note: print w/replies, xml ) Need Help??


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.

/s

Replies are listed 'Best First'.
Re: Re: Somersaulting camel
by eyepopslikeamosquito (Archbishop) 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.

    $^O=~Win?`CLS>&2`:`clear>&2`

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found