Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Subroutine Produces Output but Fails to Return to Parent

by chargrill (Parson)
on Jan 18, 2007 at 23:26 UTC ( [id://595377]=note: print w/replies, xml ) Need Help??


in reply to Subroutine Produces Output but Fails to Return to Parent

Incidentally, you don't need to use join if you're just doing a simple concatenation (which it appears you are). One of these varients suffices:

$dynam_Sql_stmt = "$dynam_Sql_stmt from $p_str_tblName where RECORDXFE +REDTOFILE = 'I'"); # or $dynam_Sql_stmt = $dynam_Sql_stmt . " from " . $p_str_tblName . " wher +e RECORDXFEREDTOFILE = 'I'");

... with my preference toward the former.

But the advice from everyone else is quite good. We need more code, if only we see what the values of some of your variables are, as well as what code you've elided.

You might just have some code that's incorrect case and it can be hard to see that. use strict; will catch those kinds of errors.



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-24 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found