Matching within the LHS of a regex...

2001-07-30 Thread David Wood
do is something like:- $str =~ s/]+\n(.*?)<\/udb:$1>/$sub->($1,$2)/gs; But putting the $1 on the LHS is not valid... Any thoughts? -- David Wood, Web Developer [a] Clickmusic Ltd, 99c Talbot Road, London W11 2AT [t] 020 7727 7500 [w] www.clickmusic.co.uk "There are three types of

Re: Think there is something DBI

2001-07-18 Thread David Wood
es_taught,$subjectarea_1,$s > ubjectarea_2,$subjectarea_3,$subjectarea_4,$subjectarea_5,$subjectarea_6,$ho > w_heard,$Occupation)`; > > my $sth= "$SQL_UP"; > $str= $dbh->quote($sth); > print $str; > exit; > - Original Message - > From: "David

Re: Think there is something DBI

2001-07-18 Thread David Wood
em, I am running a script to take a pipe > > delimited flat file and pump the data into a database. Due to the users > > putting extraneous apostrophes I am getting errors that there are unclosed > > apostrophes in the fields. I am looking for a way to escape these > >

Re: Think there is something DBI

2001-07-18 Thread David Wood
ors that there are unclosed apostrophes in the fields. I >am looking for a way to escape these apostrophes as simply as possible. Can someone >help? > > Judd Borakove -- David Wood, Web Developer [a] Clickmusic Ltd, 99c Talbot Road, London W11 2AT [t] 020 7727 7500 [w] www.clic

Re: regex self taught, not fun...

2001-07-18 Thread David Wood
. the <> characters. > > Is this so hard because I'm trying to row with a fork or what ? > > Michael Carmody > MDU, Public Health Lab > Dept. of Microbiology and Immunology > The University of Melbourne, Parkville > > -- > To unsubscribe, e

Re: Regex giving me fits!! :-(

2001-07-17 Thread David Wood
ary Luther.vcf > Type: Plain Text (text/plain) > > ---- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- David Wood, Web Developer [a] Cl

Re: Perl Filters

2001-07-16 Thread David Wood
e, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- David Wood, Web Developer [a] Clickmusic Ltd, 99c Talbot Road, London W11 2AT [t] 020 7727 7500 [w] www.clickmusic.co.uk "There are three types of people in the world; those who can count, and

Re: Regarding Internal Server Error

2001-07-16 Thread David Wood
l server error.i have not done much in search_results.cgi >so basically i feel there is no syntax error. > > What are the possible reasons of error..Please Help! -- David Wood, Web Developer [a] Clickmusic Ltd, 99c Talbot Road, London W11 2AT [t] 020 7727 7500 [w] www.c

Re: foreach examples/usage

2001-07-09 Thread David Wood
and make a @new_array, use map - a bit more convenient than a foreach ... { push } my @new_array = map #do something with $_ here#, @array; eg: my @new_array = map $_*2 , @array; Would give 0,2,4,6,8,10,12,14,16.42,44 -- David Wood, Web Developer [a] Clickmusic Ltd, 99c Talbo