Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Somersaulting camel

by educated_foo (Vicar)
on Jun 28, 2002 at 08:08 UTC ( #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


Comment on Re: Somersaulting camel
Select or Download Code
Re: Re: Somersaulting camel
by eyepopslikeamosquito (Canon) 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
Node Status?
node history
Node Type: note [id://177959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2015-07-04 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls