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

Re: Perl/UNIX .profile problem

by mce (Curate)
on Nov 18, 2004 at 12:29 UTC ( #408750=note: print w/replies, xml ) Need Help??


in reply to Perl/UNIX .profile problem

If you really want to obfu it:
$file = "/home/user/.profile"; grep(do{chop;s/(.*)=(.*)/$ENV{$1}=$2/e;},`. $file; env`);
But I am sure that there are better solutions.
Yours,

---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2023-03-22 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?