Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: regular expression trouble

by choroba (Cardinal)
on May 31, 2013 at 14:01 UTC ( #1036252=note: print w/replies, xml ) Need Help??


in reply to regular expression trouble

You should study how objects and methods work in Perl. The sub should start with
my $self = shift;

The table is the second parameter, the first one is the invocant.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: regular expression trouble
by Crackers2 (Parson) on May 31, 2013 at 14:03 UTC

    In addition to that, this:

    my $sql="INSERT INTO $table ($values) VALUES ($names)\n";

    should probably be

    my $sql="INSERT INTO $table ($names) VALUES ($values)\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1036252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2022-12-03 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?