in reply to split a line into 2 variables and store in SQL
$sth->execute($words[0], $words[1]) or die $DBI::errstr;
(As a side node $1 is not a register, but a (special) variable that is set by the regex engine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: split a line into 2 variables and store in SQL
by sharan (Acolyte) on Jan 23, 2009 at 10:56 UTC | |
by Bloodnok (Vicar) on Jan 23, 2009 at 11:04 UTC | |
by sharan (Acolyte) on Jan 23, 2009 at 11:13 UTC | |
by Bloodnok (Vicar) on Jan 23, 2009 at 11:27 UTC | |
by moritz (Cardinal) on Jan 23, 2009 at 12:20 UTC | |
by sharan (Acolyte) on Jan 23, 2009 at 13:30 UTC | |
by moritz (Cardinal) on Jan 25, 2009 at 18:56 UTC |