" does not display in html

2002-07-16 Thread Yuan Cheng
Hi, All: I encounted one situation which seems wield to me. I retrieved a set of data from mySQL database and try to diplay in a html form. I found that one field with the string which has " in it cannot be displayed properly. the code is as follows: #retrieve the data from Table order_recor

unable to insert data into two tables at same time

2002-06-15 Thread Yuan Cheng
Hi, there: I try to write a perl code that takes form data from html page and inserts or updates database tables. I have successfully insert data into one table, but fail to insert data into another table. My sample as follows: *** my $dbh = DBI->

the scope of 'use strict'

2002-03-15 Thread Yuan Cheng
HI, all: I am wondering what else 'use strict' does besides it is stated in the perldoc that it stricts on use of 'vars', 'refs' and 'subs'. Thanks. yc __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- T

question about regex

2002-02-25 Thread Yuan Cheng
Hi, All: I have problem with regex. I try to get some content from a html source and print it out on the screen. the following is my code: use LWP::Simple qw(get); my $url = "http://www.somewebsite.com";; my $html = get($url); my $index = "some index number"; my @result = $html =~ /.*$index.*(