Re: [INTERFACES] Paths in DBD::Pg

Поиск
Список
Период
Сортировка
От selkovjr@mcs.anl.gov
Тема Re: [INTERFACES] Paths in DBD::Pg
Дата
Msg-id 199905161628.LAA13696@antares.mcs.anl.gov
обсуждение исходный текст
Ответ на Paths in DBD::Pg  (Julian Scarfe <jscarfe@callnetuk.com>)
Список pgsql-interfaces
> I'd like to deal with geometrical data types, paths in particular,
> efficiently in Perl using Pg. But Pg, understadably I suppose, just
> returns a path as a scalar string like ((1,2),(3,4),(5,6)). Whereas I
> can 'eval' a point fairly efficiently, it's not very efficient to turn a
> long string such as the above into an array of arrays.

You don't need to eval() individual points. If you eval() the whole
thing it will give you one single array:

@a = eval "((1,2),(3,4),(5,6))";
print "@a\n";


--Gene


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Julian Scarfe
Дата:
Сообщение: Paths in DBD::Pg
Следующее
От: "Geoffrey C. Speicher"
Дата:
Сообщение: PgODBC + Borland C++ Builder problems