Is this even possible ?

patrick.dempster at ntlworld.com patrick.dempster at ntlworld.com
Thu Nov 14 04:20:17 CST 2002


Guys,

I would like $queryString to contain the return value from the subroutine not the sub name, is this possible ??

Thanks,
Patrick

----------------------
my @sql = ("getVendorsSql()", "getPricesSql()");

foreach (@sql)
{
	my $queryString = ($_);
	print "queryString $queryString\n";
}

#########################################################
## Returns the SQL string 
##
#########################################################
sub getPricesSql()
{
	print "I was here getPricesSql()\n";
	return "SELECT * FROM PRICES_T";
}
#########################################################
## Returns the SQL string 
##
#########################################################
sub getVendorsSql()
{
	print "I was here getVendorsSql()\n";
	return "SELECT * FROM vendors_T";
}

----------------------------------------




More information about the Belfast-pm mailing list