in reply to am i in a chroot

This is a shell issue, not a Perl issue.

$MACHTYPE seems to be a shell variable that you did not export to the environment.

Most likely, you can remedy the situation by typing:

export MACHTYPE

in your shell window before running the Perl code.

Replies are listed 'Best First'.
Re^2: am i in a chroot
by vesperto (Initiate) on Sep 24, 2014 at 08:00 UTC
    Indeed. Thanks, had to export it in /etc/profile
    /me bows his head in shame