code question?

2002-09-10 Thread greeniize
Hi, I'm using a perl cgi script which creates an html form, using a radio button and a submit button, and I'm trying to find a way for the cgi code to return two variables under one "onClick" command. Here's the line- As you can see, when the user clicks on the submit button, after making the

RE: Outlook Express mail notifier...

2002-09-10 Thread Tim Fletcher
this has some basic stuff http://www.selectorweb.com/outlook.html and i haven't looked deeply into it, but it could be a good starting place http://www.slipstick.com/dev/outtech.htm HTH Tim -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Stovall, Adri

Re: Using Perl to access Lotus Notes databases

2002-09-10 Thread Trevor Joerges
I've done it in the past using the Notes SQL Drivers and basic SQL syntax. What you will need is: - the drivers from the Lotus web site - the Notes Client - a Notes ID - an SQL module for Perl like Win32::ODBC or DBI::ODBC (I would recommend DBI). The Notes ID you use to access the Notes databas

RE: Regualr Expression

2002-09-10 Thread Stovall, Adrian M.
You mean will it store that info for you? Put the whole thing in parentheses, and assign it to a variable... $numberofchanges = ($dir =~ s/\\/\//g); This should have a count of how many times it changed a "\" to a "/". Got this straight out of "Programming Perl, 2nd Edition" page 73. -O

RE: Insert items to html's list box from MySql table

2002-09-10 Thread Norris, Joseph
Dovalle,   I use the code below in a standard package of callable routines.  It reads the table passed to it and builds a pulldown box.   You can modify that any way you want.  Then I drop it into a html template variable - but you can build your html in your script if you want and just hac

RE: Regualr Expression

2002-09-10 Thread Barlow, Neil
Cheers, Can the regex expression below then be modified to find out if the number of slashes in the expression is greater than one? -Original Message- From: Stovall, Adrian M. [mailto:[EMAIL PROTECTED]] Sent: 10 September 2002 15:16 To: perl-win32-users Subject: Regualr Expression Y

Re: Regualr Expression

2002-09-10 Thread Adam Ingerman
> >$die=~s!\\!/!g; > > > >There's also: $die =~ tr!\\!/!; err, yes... there seems to be something wrong with the auto-correct in my fingers, I'll have to look into them. 8^) _ Chat with friends online, try MSN Messenger: htt

RE: Regualr Expression

2002-09-10 Thread Adam Ingerman
> > oops, do that and you'll confuse it. swap that for > > > > $dir=~s'\'/'g; #not interpolated with single quotes > >Huh? I've never heard of that. It doesn't work for me either. What version >of Perl are you using, and where is this documented? > Hmm, it doesn't work either. meh. there's somet

Using Perl to access Lotus Notes databases

2002-09-10 Thread Ken Shackelford
OK, here is a question from a Perl newbie that maybe some of the masters out there can help me with... ;-) I have been asked to rewrite a program originally written in ObjectREXX on a W2K platform to Perl, running on the same platform. I have found that by far the Perl code is much nicer and ea

RE: substitution regular expression

2002-09-10 Thread T&C Winquist
That worked perfectlythanks! -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 1:42 AM To: T&C Winquist Cc: [EMAIL PROTECTED] Subject: Re: substitution regular expression T&C Winquist wrote: > It seems like everytime I do a regular

Re: Regualr Expression

2002-09-10 Thread csaba . raduly
On 10/09/2002 15:37:44 perl-win32-users-admin wrote: >>$dir=~s!\!/!g; #should work better, no ambiguity with slashes > > >oops, do that and you'll confuse it. swap that for > >$dir=~s'\'/'g; #not interpolated with single quotes > >~or~ > >$die=~s!\\!/!g; > There's also: $die =~ tr!\\!/!;

RE: Regualr Expression

2002-09-10 Thread Thomas_M
> oops, do that and you'll confuse it. swap that for > > $dir=~s'\'/'g; #not interpolated with single quotes Huh? I've never heard of that. It doesn't work for me either. What version of Perl are you using, and where is this documented? -- Mark Thomas[EMAIL PROTECTED] Inter

Re: Regualr Expression

2002-09-10 Thread Adam Ingerman
>$dir=~s!\!/!g; #should work better, no ambiguity with slashes oops, do that and you'll confuse it. swap that for $dir=~s'\'/'g; #not interpolated with single quotes ~or~ $die=~s!\\!/!g; that'll teach me _ Send and receive Hotm

Re: Regualr Expression

2002-09-10 Thread Adam Ingerman
>Hi all, > >I am dealing with directories and I read somewhere that it is best to use / >rather than \ when dealing with directories. In order to cover my back - I >am attempting to parse the string and replace any \ with / using the >following: > >print "Please enter directory to search: ";#

Re: Regualr Expression

2002-09-10 Thread Tim . Moose
The problem here $dir =~ s/\///g; is that the two characters you are dealing with have special meaning. The / is interpreted as a quote delimiter because you are using s///. The strings inside of s/// are interpolated, so the \ is interpreted as an escape character. Try escaping both

Re: Regualr Expression

2002-09-10 Thread Jingmei_Guo
Try this:         $dir =~ s/\//\\/g; "Barlow, Neil" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/10/2002 09:05 AM                 To:        [EMAIL PROTECTED]         cc:                 Subject:        Regualr Expression Hi all, I am dealing with directories and I read somewher

Regualr Expression

2002-09-10 Thread Stovall, Adrian M.
You're missing a few slashes... $dir =~ s/\\/\//g; Or (more clearly) $dir =~ s|\\|/|g; To use a backslash in a matching expression and have it treated as a backslash (and not an escape sequence), you have to prefix it with another backslash. If a forward-slash is the delimiter for your expres

Regualr Expression

2002-09-10 Thread Barlow, Neil
Hi all, I am dealing with directories and I read somewhere that it is best to use / rather than \ when dealing with directories. In order to cover my back - I am attempting to parse the string and replace any \ with / using the following: print "Please enter directory to search: "; # directo

Outlook Express mail notifier...

2002-09-10 Thread Stovall, Adrian M.
Hi all, as a favor to my wife, I am going to create a new mail notifier (something that plays a sound and puts a picture on the screen when mail shows up in outlook express). Incredimail sucks, and she finally realized that. At any rate, I was wondering if anyone could point me to some good docu

Re: SSL on Win?

2002-09-10 Thread Adam Ingerman
>>Adam Ingerman wrote: >> >>>I've seen a number of scripts that can use (or in some cases need) SSL, >>>but the net:SSL from activeperl doesn't allow for Windows installs. >>>Is there anyway arround this? or is there an SSL library that's just not >>>on windows that it would need? >>Net::SSL fro

Re: DESPERATE

2002-09-10 Thread Adam Ingerman
>I'm really desperate here. >I have a list of files in: >D:\ftproot\edi\inbox\ > >I want to move these files to : >D:\ftproot\edi\tmp\ >before I can start processing. > > >So I am using the code below but it doesn't work. >I know I'm not eligible, but will you please help. > > >opendir(INVOICES,'D

Re: Insert items to html's list box from MySql table

2002-09-10 Thread Simon Oliver
> Dovalle Yankelovich wrote: > > Hi, > I want to read some data from a table of MySql then take every element I > got and put it as item in html list box. > I will appreciate if someone could help me > Thanks > You could use DBI + DBD::mysql to retrieve the data from the table, something like t

Re: DESPERATE

2002-09-10 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > I'm really desperate here. > I have a list of files in: > D:\ftproot\edi\inbox\ > > I want to move these files to : > D:\ftproot\edi\tmp\ > before I can start processing. > > > So I am using the code below but it doesn't work. > I know I'm not eligible, but will you p