|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi there
I am trying to use a date as a criteria in a sql statement the database is an access data base and requires the date to be put between hashes eg. #27/05/00# however perl sees this as commenting out I thought of writing it like this eg. #27/05/00# but it doed not seem to work does any body have any ideas Thanks |
|
#2
|
||||
|
||||
|
You could do something like this:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> my $date = qq(#27/05/00#); [/code] Now the $date variable should be passed withouth the need to escape everything and will produce the desire value. ------------------ <A HREF="http://www.thunder-rain.com" TARGET=_blank> Thunder Rain Internet Publishing</A> Providing Personal/Business Internet Solutions that work! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Perl and Dates |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|