> use  bronc::conf::collectd qw(&bronc_swport_extended);

not sure you need the "&" there; if I understand exporting well, it will
try to import a sub "&bronc_swport_extended", not "bronc_swport_extended",
that is why it si trying to find bronc_swport_extended in a HTML::Mason
module




On Tue, Jun 10, 2014 at 12:26 PM, Sergey <a_...@sama.ru> wrote:

> Hello.
>
> I attempt to place individual perl module in site's directory
> but it isn't works:
>
> error: Error during compilation of /var/www/vhosts/stat/htdoc/SW/sw1.html:
>        Undefined subroutine &HTML::Mason::Commands::bronc_swport_extended
>        called at /var/www/vhosts/stat/htdoc/SW/sw1.html line 97.
>
> Did path must be described somewhere in addition to @INC ?
>
> I use "PerlSwitches -I/var/www/vhosts/stat/lib" in site's config (Apache2).
> sw1.html (with Mason's code) contains
>
> use  bronc::conf::collectd qw(&bronc_swport_extended);
>
> All works if I move collectd.pm to /usr/share/perl5/BRONC/Conf/Collectd.pm
> and it isn't works if I move it to /usr/share/perl5/BRONC/conf/collectd.pm
> (with correct modification "use ..." in sw1.html of course).
>
> Or is there something is case sensitive ? I use Mason 1.50.
>
> --
> Regards,
> Sergey
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>



-- 
==================================
Emil Perhinschi     http://www.lunch-break.ro
==================================
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to