in reply to Re^2: Safe.pm, Barcode::DataMatrix, Can't locate object method "new" via package "Barcode::DataMatrix"
in thread Safe.pm, Barcode::DataMatrix, Can't locate object method "new" via package "Barcode::DataMatrix"

What about:
$safefuncs->share_from( 'Barcode::DataMatrix', ['new','barcode'] );
  • Comment on Re^3: Safe.pm, Barcode::DataMatrix, Can't locate object method "new" via package "Barcode::DataMatrix"
  • Download Code

Replies are listed 'Best First'.
Re^4: Safe.pm, Barcode::DataMatrix, Can't locate object method "new" via package "Barcode::DataMatrix"
by Tharg (Scribe) on Jul 19, 2015 at 17:00 UTC
    Usual error :
    C:\Users\XX\TestSafe>perl TestSafe.pl (in cleanup) Can't locate object method "new" via package "Bar +code::DataMatrix" (perhaps you forgot to load "Barcode::DataMatrix"?) + at TestSafe.pl line 13.