in reply to Re: Altering Behavior of a Script
in thread Altering Behavior of a Script

I'm on a Linux system, but the script you provided does not seem to be working for me. In fact, if I do this,
perl -e 'print join "\n", keys %ENV';
I do not even see '-', the closest thing that would resemble this is '_'. But if I print the value of '_', it will give me this: /usr/bin/perl

Replies are listed 'Best First'.
Re^3: Altering Behavior of a Script
by ikegami (Patriarch) on Sep 03, 2009 at 20:52 UTC
    Bloodnok is thinking of special bash variable $-. It is not an environment variable, and it would be useless to a child anyway.