regex to split whitespace-separated values

2007-01-09 Thread Bram Kuijper
Hi all, this is a real beginner question, but I don't seem to find a good solution: I have a single line of whitespace separated values, e.g.: 50 100 150 200 300 50 Now I want to split these values into an array usin

DBI::execute(): how to evade quoting identifier names

2007-01-02 Thread Bram Kuijper
Hi all, thanks for the quick solution to my previous __FUNCTION__ question. I have another problem: I try to execute the following SQL query in PostGreSQL 8.1. However, it gives errors since DBI::execute() automatically quotes when it inserts its arguments into the SQL query. Is there any w

php's __FUNCTION__ equivalent in Perl

2007-01-02 Thread Bram Kuijper
Hi all, Is there some type of equivalent to PHP's __FUNCTION__ magical constant in Perl, with which you can get the current function's name within the function's body? The list of perl predefined variables from Larry Wall's book does provide a __FILE__ constant, but apparently a __FUNCTION__