Hi Nora, On Monday 25 October 2010 10:05:05 HACKER Nora wrote: > Hi list, > > I have a sql package which returns a value after execution. I figured > out that, when calling this package from Perl, I need a bind parameter > (http://search.cpan.org/~timb/DBI-1.615/DBI.pm#bind_param_inout) that > this return can be saved into so that I can use it afterwards in my Perl > program. Is my assumption correct? If so, could please somebody explain > to me how to do that? I read the passage from the above URL again and > again but I just don't get it :-/ What is $p_num? What is the > \$bind_value? And of which unit is $max_len?
1. $p_num is the position of the parameter in the query string (the index of the "?" which you put there.). 2. $bind_value is the variable where you want to supply and receive the value. You need to take a reference to it so it can be modified. 3. $max_len is the maximal amount of memory (in bytes likely) that should be allocated for the value to be stored. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Stop Using MSIE - http://www.shlomifish.org/no-ie/ <rindolf> She's a hot chick. But she smokes. <go|dfish> She can smoke as long as she's smokin'. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/