On Sun, 28 Oct 2012 11:35:52 +0200
Chanan Berler <[email protected]> wrote:
> Hey All,
>
> Quick question: when running perl -c DAL.pl i don't see any errors in
> my code, unless I am create an object out of DAL.
> Q: is there a way to find these kinda syntax errors ?
>
What exactly do you find wrong with the code below? What do you wanted to
do instead? There doesn't seem to be a syntax error there, but there may be
some runtime errors.
> package DAL;
>
> ## $Revision: 1.7 $
Is this CVS? Ouch!
Regards,
Shlomi Fish
> ## $Date: 2012/07/16 14:36:13 $
> ## $Author: chanan $
>
> use base 'backoffice::dal';
> use strict;
> use warnings;
>
> our $VERSION = '2.03';
>
> sub new
> {
> my ( $class, $params ) = @_;
>
> # for compatible
> $params->{'config'} = $params->{'Config'}->{'DB'}->{'OFFICE'};
>
> return $class->SUPER::new($params);
> }
>
> 1;
>
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/
C++ supports Object‐Oriented Programming roughly as much as COBOL supports
Functional Programming.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl