Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix to perl 1

Status
Not open for further replies.

ejaggers

Programmer
Feb 26, 2005
148
US
in Unix the ~ is the user's home directory.
ie ls -l ~ cd ~ take you to the home home directory.

How do you find the home dir on unix in perl?
 
$ENV{HOME}

In unix run the `env` command and see what other neat stuff Perl can get. :)

Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top