They're hash references. Try this:
#!/usr/bin/perl -w
use strict;
my $foo = { foo => 1, bar => 2 };
print $foo;
You'll get funny numbers doing that too. It's just printing out HASH(memory_location) to tell you it's a reference (this is similar to pointers in C/C++ if you're familiar to...
Not sure I'm clear on this question, but why not just redirect to the URL and pass the data as part of it? For example (using the CGI module, of course):
print $cgi->redirect('somepage.html?var1=val1&var2=val2');
#1:
It's implemented easiest with () grouping, not [] character class:
$foo =~ /(minute)|(hour)|(day)s? ago/;
#2:
You can match the message using character classes [ ] because ( and ) aren't interepreted as anything but their characters within character classes. For example:
[\w()\s]+...
Are you asking a Perl or a PHP question? If you're asking a Perl question, the easiest way to get it would be using the CGI module and giving the file the proper bang line (#!/path/to/perl -w) and extension..
use CGI;
my $cgi = new CGI;
my $query_value = $cgi->param('artist_id');
Voila...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.