can you match " OR end-of-string" in regexp?

2001-04-03 Thread Bennett Haselton
In the following code: >>> $string = "ab"; if ($string =~ /(ab[c$])/) { print "yes: $1\n"; } >>> what I'm trying to say is: "match $string IF it contains the letter a, followed by the letter b, followed by either the letter c or the end of the string". But when I run the code, I get the

RE: Any way to do a timed input on STDIN

2001-04-03 Thread Peter Eisengrein
Could you use the Timer() object from Win32::GUI ? -Original Message- From: Wagner-David [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 4:27 PM To: Wagner-David; 'Perl Win32' Subject: RE: Any way to do a timed input on STDIN I meant Term::ReadKey. Sorry. Wags ;) -Original

Re: Path problems in IIS5

2001-04-03 Thread ryddler
Tuesday, April 03, 2001, 10:54:09 AM, Doyle wrote: DJ> Hi All, DJ> I have an interesting problem with paths and possibly virtual directory's in IIS5, they are as follows: DJ> If I use... DJ> use lib "cgi-bin/lib/florence"; DJ> I cannot use. DJ> require "cal.conf.pl"; DJ> As I woul

RE: Re: Ref Q

2001-04-03 Thread Rubinow, Larry
Grant Hopwood wrote: > -start- > ># creation of hash of arrays > >$sth = &DoSQL($sql); > >while (($item, $cost, $charge) = $sth->fetchrow_array()) { > >push @{$costtable{$item}}, ($cost, $charge); > >} > > >Using symbolic references "@{$varname}" is not recommended practice.

Re: Working with templates

2001-04-03 Thread ryddler
Hello Brian, Tuesday, April 03, 2001, 7:48:16 AM, you wrote: BS> I'd like to extend the use of templates a bit further by allowing the use of BS> embedded files - sort of like what you get using SSI on a webserver. This Have you looked at Template::Toolkit? Here's a snip from the docs of some

RE: A couple questions with windows and perl

2001-04-03 Thread Jeremy Blonde
Here's the script I used to figure out your question. -- opendir(DIR, "/"); @files = readdir(DIR); print "@files\n"; chdir("e:/"); opendir(DIR, "/"); @files = readdir(DIR); print "@files\n"; -- When you run this you'll see that / refers root of the curre

Re: Re: Ref Q

2001-04-03 Thread Grant Hopwood
-start- ># creation of hash of arrays >$sth = &DoSQL($sql); >while (($item, $cost, $charge) = $sth->fetchrow_array()) { >push @{$costtable{$item}}, ($cost, $charge); >} >Using symbolic references "@{$varname}" is not recommended practice. Perhaps a rethink of how you would li

Re: Ref Q

2001-04-03 Thread Grant Hopwood
-start- > "Purcell, Scott" <[EMAIL PROTECTED]> >at04/03/2001 09:29 AM >Hello, >From the perlreftut, I have some in which I am creating a hash of arrays >where each array only has 2 values. ># creation of hash of arrays >$sth = &DoSQL($sql); >while (($item, $cost, $charge) = $sth->f

Re: Ref Q

2001-04-03 Thread $Bill Luebkert
"Purcell, Scott" wrote: > > Hello, > >From the perlreftut, I have some in which I am creating a hash of arrays > where each array only has 2 values. > > # creation of hash of arrays > $sth = &DoSQL($sql); > while (($item, $cost, $charge) = $sth->fetchrow_array()) { > push @{$cost

Re: How to start Word and keep it running?

2001-04-03 Thread Paul . Bettendorf
I am running (walking?): Windows 95b (4.00.950 B) Internet Explorer (aka OS extension) 5.01 sp1 (5.00.3105.0106) ActiveState Perl binary 522 (Perl 5.005_03) with ActiveState PPM-supplied extensions Microsoft Word 97 SR-2 I am editing in TextPad (www.textpad.com) 4.4.1 and have configured an op

RE: A couple questions with windows and perl

2001-04-03 Thread Flynn, Timothy J
As stated in my email it is extremely important in this case to use this method /something/something. I have used your method before but it won't work in this scenario. My specific question was how to tell perl where / was and what drive it applied to, or to see if it was just the current drive

Path problems in IIS5

2001-04-03 Thread Doyle Johnson
Hi All,     I have an interesting problem with paths and possibly virtual directory's in IIS5, they are as follows:       If I use...       use lib "cgi-bin/lib/florence";    I cannot use.     require "cal.conf.pl";    As I would expect to, I have to use.    requ

Re: ActiveState's PPM List Stalls Netscape

2001-04-03 Thread $Bill Luebkert
"Cornish, Merrill" wrote: > > I have noticed several times in the last week that if I use Netscape 4.6 to > try to look at the list of PPM packages available from ActiveState > (ActivePerl/status.html), Netscape loads up to about 97% of the file, then > freezes. The window can't be moved and Tas

Re: A couple questions with windows and perl

2001-04-03 Thread Brian Gibson
this is what I use for paths in perl for win32 c:\\folder\\folder\\filename.txt I backtick the "\" with another "\" Also, when you go to map a drive, I use the system function and the "net use" command (I know there is probably a module you can download in perl to do this.) Here is an exam

A couple questions with windows and perl

2001-04-03 Thread Flynn, Timothy J
Hi, First Question: I have a program that relies on this type of UNIX compatible path convention, i.e.. /somedir/someplace/somefile, instead of 'C:\somedir\someplace\somefile'. This seems to work okay when I only have one drive, say drive c, but what changes say when I have a drive S:

Ref Q

2001-04-03 Thread Purcell, Scott
Hello, >From the perlreftut, I have some in which I am creating a hash of arrays where each array only has 2 values. # creation of hash of arrays $sth = &DoSQL($sql); while (($item, $cost, $charge) = $sth->fetchrow_array()) { push @{$costtable{$item}}, ($cost, $charge); } # s

Re: How to start Word and keep it running?

2001-04-03 Thread Joe Schell
[EMAIL PROTECTED] wrote: > > Using Win95b, Word 97 sp2, AS Perl 5.005_03 > > Ok, I modified my suggestion below to work with Word. It works; however, > if it starts a new instance of Word, the script will not exit until that > instance is terminated. (Note that script statements after the invo

RE: OT:Windows Me vs Windows 98 SE

2001-04-03 Thread Thomas_M
Any of the newer ones with kernel >= 2.4 and Xfree >= 4.0.1. I like Mandrake 7.2. Check out the little demo: http://www.linux-mandrake.com/en/demos/Demo/Mandrake7.2/QuickLook/ For those of you who haven't seen Linux in a while, the above will open your eyes. - Mark. > -Original Message

ActiveState's PPM List Stalls Netscape

2001-04-03 Thread Cornish, Merrill
I have noticed several times in the last week that if I use Netscape 4.6 to try to look at the list of PPM packages available from ActiveState (ActivePerl/status.html), Netscape loads up to about 97% of the file, then freezes. The window can't be moved and Task Manager declares it to be "not resp

Re: Duplicating Excel Spreadsheet with Perl

2001-04-03 Thread SCOTT_SISSON
The functionality you are talking about is strictly and Excel issue. Given that this is a perl mail list the question probably should not be posted here. The functionality accomplished by activating the cell where you want the colums to remain static and then use the tab Window |Freeze Panes

Duplicating Excel Spreadsheet with Perl

2001-04-03 Thread Cornish, Merrill
Jan, Given a lot of research, I have been able to duplicate most of an Excel spreadsheet one of my manager's uses with Perl and OLE. The one item I haven't be able to duplicate is that when you scroll horizontally, the first two columns stay in place and only the other columns move. As nearly a

Re: request help tcp to mysql

2001-04-03 Thread Philip Newton
David Armstrong wrote: > Could anyone please show how to include another perl file used as a > configuration script Probably with either 'do' or 'require'. `perldoc -f do`, `perldoc -f require` to read about the difference. > i have used the code below in linux and it works fine but on > portin

Re: template problem

2001-04-03 Thread Philip Newton
Charles Pelkey wrote: > $_ =~ s/{(.*?)}/${$1}/g; # Find variables in the form of > {var_name} and replace with $var_name Eek -- symbolic references. > Does anyone have an idea of how to fix this??? Use a hash :) s/\{([^}]*)\}/$var{$1}/g; Should replace {Full_Name} with $var{'Full_Nam

Re: Unicode and mails

2001-04-03 Thread Philip Newton
Henning Michael Møller-Nielsen wrote: > Is there any commonly accepted way of sending Unicode > characters through that good old e-mail system, without > making the e-mail HTML/XML formatted? > > Like sending character #8220 in an e-mail? I would guess the standard way would be to use MIME and

Working with templates

2001-04-03 Thread Brian Steele
Hi Everyone: Some time ago, I re-wrote my Perl-driven forum script to use templates for all HTML output (i.e. instead of embedding HTML code within the script, I placed it in separate files, which are parsed whenever the script needs to output HTML code). Tags are used to identify locations wher