# if PREFIX is set, set LIB too foreach my $arg (@ARGV) { if ($arg =~ /^PREFIX=(.*)/) { push @ARGV, "LIB=$1/lib"; } }