Is this even possible ?
patrick.dempster at ntlworld.com
patrick.dempster at ntlworld.com
Thu Nov 14 05:11:23 CST 2002
Thanks guys this is just what I was looking for but couldn't find it in the documentation (because I wasn't sure what I was looking for).
And in answer to my own question another way of doing it was which I discovered about 2 minutes after posting :),
my @sql = (getVendorsSql(), getPricesSql());
Thanks again folks.
>
> From: Tony Bowden <tony at kasei.com>
> Date: 2002/11/14 Thu AM 10:30:54 GMT
> To: belfast-pm at pm.org
> Subject: Re: Is this even possible ?
>
> On Thu, Nov 14, 2002 at 10:20:17AM +0000, patrick.dempster at ntlworld.com wrote:
> > my @sql = ("getVendorsSql()", "getPricesSql()");
> > foreach (@sql)
> > {
> > my $queryString = ($_);
> > print "queryString $queryString\n";
> > }
>
> my @sql = ("getVendorsSql", "getPricesSql");
> foreach my $sub (@sql) {
> my $queryString = $sub->();
> print "queryString $queryString\n";
> }
>
> or
>
> my $queryString = &$sub;
>
> Tony
>
>
More information about the Belfast-pm
mailing list