Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Object oriented mess

by RazorbladeBidet (Friar)
on Apr 13, 2005 at 14:22 UTC ( #447401=note: print w/replies, xml ) Need Help??


in reply to Object oriented mess

Can you provide more code about abc.pl?

More information about Client? Are they related in any way?

What error are you getting?
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."

Replies are listed 'Best First'.
Re^2: Object oriented mess
by longliveAJ (Acolyte) on Apr 13, 2005 at 14:30 UTC
    Yes .. I do understand the difference between use and require. abc.pl is a global file thats contains common sub-routines (such as Error handling subs, template formating sub, etc) abc.pl is included in all files (even Client.pm) Client.pm looks something like this
    --------------client.pm------------- package Client; use strict; require '../somepath/../abc.pl'; sub new { create and return a hash object } sub get_name { return $_[0]->{'Name'}; } 1; -------------
    I apologize if I am not explaining the code well enough.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-10-22 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?