http://www.perlmonks.org?node_id=905517


in reply to perl Expect; "set home"

Not that it's a perl problem but the -H option to sudo is probably what you want; that or use the correct shell syntax to change the HOME environment variable rather than making something up.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: perl Expect; "set home"
by Stoomy (Novice) on May 18, 2011 at 18:21 UTC
    Thanks flex/fletchvault,
    The -H option to sudo did what I needed.