Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Perl OO best practice?

by smile4me (Beadle)
on Feb 09, 2010 at 20:07 UTC ( #822268=note: print w/replies, xml ) Need Help??

in reply to Re: Perl OO best practice?
in thread Perl OO best practice?

yes ikegami, you are right, open/close braces are safer/better for inline packages. I should have qualified my example better: in my production code, the packages are in separate files.

I squished them into one file for the sake of the example, in case someone wanted to run the code.


Replies are listed 'Best First'.
Re^3: Perl OO best practice?
by ikegami (Pope) on Feb 09, 2010 at 21:18 UTC
    Then your code doesn't work without use. Why are you asking if omitting use is stylistically ok when your module doesn't even work when you omit it?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://822268]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-06-13 06:11 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (54 votes). Check out past polls.