Foos yer doos bretheren?! (Local Doric dialect for how are you keeping brothers!) Does anyone know how to call the chgrp module? We are not in charge of our own software and as such our support team installs any Perl modules required. I had chmod & chgrp installed today but - support assure me it has been installed - i can't load/access/run chgrp! (chmod is actually File::chmod). The use chgrp line in my code causes the usual @INC message when a module has not been located. Don't hold back I must be doing something so silly not even I can spot it - any ideas?
#!/usr/bin/perl -w # ############################################################### # Extra Modules should be declared here. # # All these modules MUST be found on the server attempting to # # call this script. # ############################################################### # use strict ; # Enforce private + variables use lib '/home/interface/scripts/Perl_Modules' ; # Where ACC_Vario +us lives use lib '/home/interface/sectran/lib' ; # Where SECTRAN l +ives use sectran ; # In-House FTP Pe +rl Module use Cwd ; # Current Working + Directory Module use Mail::Sender; # Email module use File::Find ; use File::chmod ; use chgrp ; # print "\n\tMod Test Starts\n" ; # my $file = 'xxrctest' ; chgrp save $file or die "\n\tNo kin n d min ::$!\n" ; print "\n\tMod Test Ends\n" ;
Cheers, Ronnie
I've been informed that you can't use "use chgrp" as it is a script not a module. That said if i remove the "use chgrp" I get the following error -
Mod Test Starts Can't locate object method "chgrp" via package "save" (perhaps you for +got to loa d "save"?) at Mod_test.pl line 23. $
Still non the wiser!

In reply to Anyone used the chgrp module? by Ronnie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.