No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
There is defiantly a better way to do it...but there always is...but here is my 5 minute solution...I added an empty string for the 0 element of your months array...so that the month numbers match up with the array index (you don't want to end up with the Java Calendar …
Perl uses the % to prefix names of associative arrays (hashes)...and since Perl interpolates double quoted strings you'll need to escape the % symbols....also, i believe your missing the word "LIKE" in your query....you also may want to add an "or die($dbh->errstr)" on your prepare and execute calls.
Hello All, I just recently started a new open source project and I'd like to see if anyone would like to contribute. The project doesn't have specific purpose other than just accumulating a lot of common reusable code....any and all languages are welcome. If you would like to contribute, have …
I'm not sure if your goal is to write a single regex to do this for you...but I wasn't able to get anything to work...here is what i came up with for you... [code=perl] foreach my $row (@rows){ if ($row =~ /^.+?=".+?"/){ $row =~ /^(.+?)=(".+?")\s*((#.*)?)/; print "key($1)=val($2) c($3)\n"; } else …
The End.
mattjmorrison