Tony Earnshaw wrote:
søn, 03.10.2004 kl. 23.44 skrev p dont think:
Scalar found where operator expected at ./flat2sql.pl line 65, near ""DELETE FROM $db.$abook_table WHERE owner = "$username" (Missing operator before $username?)
Huh. Surprising.... unescaped quotes. Did this even get tested by its authors?? You need to change such lines from this:
print "DELETE FROM $db.$pref_table "
. "WHERE user = "$username" and prefkey like "___sig" . $del_ext . "___";\n"
if ( defined $opts{delete} );
to this:
print "DELETE FROM $db.$pref_table "
. "WHERE user = \"$username\" and prefkey like \"___sig\" . $del_ext . \"___\";\n"
if ( defined $opts{delete} );
Note that backslashes.
Ha!
That fixed the barfs, but (I call the script convert.pl) it now produces "Undefined subroutine &main::concat called at convert.pl line 92".
I've attached the script, could someone (maybe Jonathan?) have a look at it, please?
Huh. Interesting that I sent you the last fix, but you are still asking for Jonathan to look at it.
See http://moongroup.com/pipermail/shell.scripting/2003-February/000962.html
Obviously, this is a homegrown script not quite ready for the real world.
- Paul
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [EMAIL PROTECTED] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users