Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: More than one way to do it???

by kilinrax (Deacon)
on Dec 07, 2000 at 02:38 UTC ( #45363=note: print w/replies, xml ) Need Help??


in reply to More than one way to do it???

An immediate improvement that springs to mind is in the regex - change it to simply remove the '/dev/' at the beginning of the string:
perl -we '$tty=qx(tty);$tty=~s!^/dev/!!;print $tty'

Replies are listed 'Best First'.
Re: Re: More than one way to do it???
by Anonymous Monk on Dec 07, 2000 at 02:43 UTC
    Hum! Obviously, sleek...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-05-25 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?