[Developers] Stupid perl question

Christopher R. Maden crism at metaweb.com
Wed Sep 12 21:20:11 UTC 2007


Paul Tomblin wrote:
> How do I do a query in perl that returns all the items of a particular
> type?
> 
> I'm trying to adapt the code in 4.1.1. in the "Developing Metaweb-Enabled
> Web Applications"[1], but I can't figure out how to specify multiple
> returns?  My query currently looks like:
> 
> my $query = {
>   type => "/user/ptomblin/default_domain/waypoint",
>   name => undef,
>   aviationid => undef,
>   id => undef,
>   state_province => undef,
>   waypoint_type => undef,
>   "/location/location/geolocation" => {
>     latitude => undef,
>     longitude => undef
>   }
> };

I’m not sure what API you’re using to send the query, but can you try:

my @querylist = ( $query );

and then pass @querylist instead?

~Chris
-- 
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >


More information about the Developers mailing list