Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
kudra needed to have a reference to a reference???
Maybe, maybe not. I can't make heads nor tails from kudra's posting. Some vital information, namely the code in the modules One and Two is missing. I'm not going to speculate what's going on.
For example, take the following code:
Your code produces:
Just another scalar SCALAR(0x8191618)
But what about it? Why do you post that code. Does the result surprise you? Are you trying to make a point?
but could you explain a bit more what you meant?
What I meant was every reference is a scalar. There are no exceptions to this rule. What I also meant was that the $dbh in kudra's original post is also very likely to be a reference. Your post seem to imply that you think scalars and references are different things. So, I have two points: 1) references are scalars. 2) in both forms, a reference is passed as second argument to the news anyway.

Abigail


In reply to Re: Why was it neccessary to pass a DBI handler by reference? by Abigail-II
in thread Why was it neccessary to pass a DBI handler by reference? by kudra

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2024-04-19 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found