It works as expected - on a Windows-system it just warns that there is no chgrp-command. Is there a better way to do this? I searched on CPAN for 'chgrp' but I found nothing.#!/usr/bin/perl use strict; use warnings; my $group = 'users'; my @folder = qw ( worksheets correspondence ); &chgrp($group, \@folder); sub chgrp { my ($group, $folder) = @_; eval { system( "chgrp $group @$folder" ) }; warn $@ if $@; }
In reply to How to chgrp in perl? by neniro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |