in reply to Re^2: HELP chgrp
in thread HELP chgrp

(Missing operator before $file?)

I'm not familiar with the script in question, but you definitely need an operator between those scalars, as the error message suggests. Try this:

chgrp( $new_group, $file ) or die( 'etc.' );

Additionally:

use lib '/usr/local/ppt/bin';

Adds the path to the script to your lib path, but it doesn't actually load the script itself.

Update: Looking at what you are trying to do in your unlinked-but-related node, what is wrong with just using chown?

chown( -1, scalar getgrnam("save"), $file ) or die( "$! etc." );

Note: that's an example usage, not a recommended one. Make sure that getgrnam returns something in production code.