Re: Installing packages

2001-06-07 Thread Jenda Krynicky
> How can i install for ex. DBI and DBD packages in a computer with no > Internet Connection? You download the modules from http://www.activestate.com/PPMPackages/zips/6xx-builds-only/ copy them somehow to the computer in question, unpack the ZIPs to some temporary directory, set ppm repositor

Re: problems with perlcc - news

2001-06-07 Thread Claves do Amaral
From: "Joe Schell" <[EMAIL PROTECTED]> To: "Claves do Amaral" <[EMAIL PROTECTED]>; You did uninstall the older version first right? bingo! now it works. #perlcc.bat formatta_ama.pl still gives problems, but if I use #perl -MO=CC formatta_ama.pl I get the desired result, i.e. a file written

RE: Revised: Symbolic References & "use strict;"

2001-06-07 Thread Nikhil . Kaul
-- tried to send this yesterday - no luck. Here goes again use strict; use vars qw($one $two); $one = "two"; $two = "two"; { no strict "refs"; # turns off strict refs for the scope of the enclosing block print ${$one}; # prints out "two" } print ${$one}; # blows up HTH, Ni

Syllables in words

2001-06-07 Thread Lee Goddard
IF it was *you* interested in this topic but without time to check it out, sorry I lost your name and e-mail, but - the existing module Lingua::EN::Syllable is so inaccurate that I grabbed some freeware rhyming dictionary files that contain syllable counts, and put them in an SQL db with perl in

Re: problems with perlcc - news

2001-06-07 Thread Claves do Amaral
From: "Sisyphus" <[EMAIL PROTECTED]> > I'm running perl compiled from AS build 626 (5.6.1) source on Win 2k. thank you Sisyphus. I have no luck with your script. I have a question for you: what compiler did you use to compile the AS 5.6.1 on your system? Probabily you use Visual C. I use Borland

Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread Lee Goddard
I need to split a string at all full-stops '.' unless they are part of a sub-string within quotes. Should I manually loop over the file, setting flags, or can I do this with a regular expression? Thanks in anticipation, lee ___ Perl-Win32-Users mail

RE: Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread erskine, michael
> -Original Message- > From: Lee Goddard [mailto:[EMAIL PROTECTED]] > Sent: 07 June 2001 11:14 > To: Perl_Users > Subject: Regex Question: splitting at a point unless part of a quoted > substring > I need to split a string at all full-stops '.' > unless they are part of a sub-string with

RE: Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread Lee Goddard
> I need to split a string at all full-stops '.' > unless they are part of a sub-string within quotes. > > Should I manually loop over the file, setting flags, > or can I do this with a regular expression? And of course, I need to have escaped single-quotes too, \' Thanks in anticipation... l

RE: Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread Lee Goddard
> > I need to split a string at all full-stops '.' > > unless they are part of a sub-string within quotes. > > > > Should I manually loop over the file, setting flags, > > or can I do this with a regular expression? > > And of course, I need to have escaped single-quotes too, > \' In other wor

Re: Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread $Bill Luebkert
Lee Goddard wrote: > > > > I need to split a string at all full-stops '.' > > > unless they are part of a sub-string within quotes. > > > > > > Should I manually loop over the file, setting flags, > > > or can I do this with a regular expression? > > > > And of course, I need to have escaped sing

Help on subctitution s///

2001-06-07 Thread Saxena, Saurabh
I have a XML file which looks like "... Saurabh .." I want to remove the whitespace in the TAG value. I am using while (<>) { s/\s*<\/NAME>/<\/NAME>/; -->This will replace the with print 4_; } On the console it is showing the value as "... Saurabh .."

(no subject)

2001-06-07 Thread Saxena, Saurabh
read print 4_ as print $_ in my previous mail regards Saurabh ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: Help on subctitution s///

2001-06-07 Thread Lee Goddard
(1) Use XML::TokeParser. (2) Use XML::TokeParser. (3) Use XML::TokeParser. Lee > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Saxena, Saurabh > Sent: 07 June 2001 12:16 > To: 'Perl2'; 'Perl1' > Subject: Help on subctitution s/// > > > > I h

RE: Help on subctitution s///

2001-06-07 Thread Petr Smejkal
open IN, 'in.xml'; open OUT, '>temp.xml'; while () { s/\s*<\/NAME>/<\/NAME>/; print OUT; } unlink 'in.xml'; rename 'temp.xml', 'in.xml'; > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Saxena, Saurabh > Sent: Thursday, June 07, 2001 1:16 P

RE: Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread Lee Goddard
> Lee Goddard wrote: > > > > > > I need to split a string at all full-stops '.' > > > > unless they are part of a sub-string within quotes. > > > > > > > > Should I manually loop over the file, setting flags, > > > > or can I do this with a regular expression? > > > > > > And of course, I need to

Re: Regex Question: splitting at a point unless part of a quoted substring

2001-06-07 Thread $Bill Luebkert
Lee Goddard wrote: > > > Lee Goddard wrote: > > > > > > > > I need to split a string at all full-stops '.' > > > > > unless they are part of a sub-string within quotes. > > > > > > > > > > Should I manually loop over the file, setting flags, > > > > > or can I do this with a regular expression? >

Re: win98 crash

2001-06-07 Thread ryddler
Hello Tom, Tuesday, June 05, 2001, 7:10:04 PM, you wrote: TN> I am trying to run Komodo under windows. As soon as I load a perl TN> script, the entire system crashes? TN> Any thoughts? TN> Tom Noack TN> ___ TN> Perl-Win32-Users mailing list TN> [EMA

RE: RegEx: Finding and replacing all characters between ( and ) ?

2001-06-07 Thread Ron Hartikka
Charles, Can the () in your data be nested? If so, you can't use an re. (See: How do I find matching/nesting anything? in perlfaq 4.) For example, while (){ print; print "becomes\n"; s/\([^\)]+\)/()/g; # as Bill suggests print; print "\n"; } __DATA__ as

Web interaction...

2001-06-07 Thread Craig S Monroe
Hello all, I am new to the web interaction space. I looked up the topic in the docs and found Http::Request::Form. I tried that, and it worked on the machine that I was working on at that moment (work at multiple locations). I then noticed that I could not use at another. I thought maybe I did no

RE: RegEx: Finding and replacing all characters between ( and ) ?

2001-06-07 Thread Joseph P. Discenza
Ron Hartikka wrote, on Thursday, June 07, 2001 8:33 AM : Can the () in your data be nested? : : If so, you can't use an re. (See: How do I find matching/nesting anything? : in perlfaq 4.) For example, : : while (){ : : print; : print "becomes\n"; : s/\([^\)]+\)/()/g; # as Bill su

RE: Web interaction...

2001-06-07 Thread Cornish, Merrill
Craig, Could you be a little more specific than "I could not use [it] at another"? What happened? What error message did you get? You are running with strict and warnings turned on, right? Also, perl -e "use Http::Request::Form;" from the command line is a quick way of seeing if a gi

RE: RegEx: Finding and replacing all characters between ( and ) ?

2001-06-07 Thread Ron Hartikka
Ok while (){ print; print "becomes\n"; s/\([^\(\)]+\)|\(\(\)\)/()/g; print; print "\n"; } __DATA__ asdf(asdf)asdf asdf((asdf))asdf asdf(as(asdf)df)asdf prints-- asdf(asdf)asdf becomes asdf()asdf asdf((asdf))asdf becomes asdf(())asdf as