Re: My, our, local

2003-01-22 Thread Rob Dixon
R. Joseph Newton wrote: > > Well, I tried it, and a few permutations thereof, and the only real > difference I see with our is that the our makes the inner declaration > a comment. It only works that way if you've also declared the variable with 'our' at file level. That way it's just a package va

Re: Regex needed.

2003-01-22 Thread Rob Dixon
Hi George. I think you'd have had an answer by now if there was one. I can't think of anything but I wasn't willing to post and say 'it can't be done' without waiting for others' ideas. George P. wrote: > But now, I need to check for all classes other than "text"; > > This has me stumped!! > > For

Re: Need help parsing a DN

2003-01-22 Thread Rob Dixon
R. Joseph Newton wrote: > > Sporry about the typo. You'll make a typost yet :-D Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: My, our, local

2003-01-22 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > There was an example in there that demonstrated > using 'our' to implement a C-like 'static' variable. Well ... if you mean something like int Inc() { static int cnt; return cnt++; } then our() is not the rig

problems with big numbers

2003-01-22 Thread Konrad Foerstner
Hi, My todays problem: I extraxt some data out of a file, stored it etc., put them into an equation and print it to an outputfile in which the results are sorted by some of their values. The equation was first a linear one (and worked perfectly), but now I would like to work with exponents (Basis

Re: looking for a string in multiple files

2003-01-22 Thread Rob Dixon
"Marco" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The input file only contains lines like: > > foo.com > > But the target file(s) look like this: (example specified is just an example) > > zone "foo.com" { > type master; > file "pri/foo.com"; > }; use

Re: Why shouldn't class modules export anything?

2003-01-22 Thread Rob Richardson
Simran, Thank you very much for your reply. I see what you're saying about @EXPORT. I really don't want to be mixing namespaces. And yes, cars do have names. I'm not modeling them in my system yet, but I should be ready. I have a couple of follow-up questions. > A "neater" less ambigious w

Re: My, our, local

2003-01-22 Thread Rob Dixon
"Jenda Krynicky" <[EMAIL PROTECTED]> wrote in message 3E2E9EDB.5722.62EB5D@localhost">news:3E2E9EDB.5722.62EB5D@localhost... > From: "Rob Dixon" <[EMAIL PROTECTED]> > > There was an example in there that demonstrated > > using 'our' to implement a C-like 'static' variable. > > Well ... if you mean

Re: Why shouldn't class modules export anything?

2003-01-22 Thread wiggins
On Wed, 22 Jan 2003 05:17:47 -0800 (PST), Rob Richardson <[EMAIL PROTECTED]> wrote: > > > > When I run perl -c to check this, it complains that @ISA, @EXPORT > > and > > > %self are global symbols that need explicit package names. Why is > > > t

Re: Bareword Constant from Package giving problems with use strict....

2003-01-22 Thread Rob Dixon
Michael Kingsbury wrote: >> print Dog::Hello; > > That was it, they weren't exported I think. Refering to them as > Win32::File::ARCHIVE, I don't have the problem. Hi Mike The Win32::File module exports the constants by default. If you want to import GetAttributes and SetAttributes as well you h

Re: My, our, local

2003-01-22 Thread zentara
On Tue, 21 Jan 2003 11:06:55 -0500, [EMAIL PROTECTED] (Paul Kraus) wrote: >Great article. Cleared up all of my confusion. However it did not touch >on "our". Anyone care to explain what its used for. For a practical example: The only time I ever needed to use "our" is when I use the "require scr

Re: My, our, local

2003-01-22 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > "Jenda Krynicky" <[EMAIL PROTECTED]> wrote in message > 3E2E9EDB.5722.62EB5D@localhost">news:3E2E9EDB.5722.62EB5D@localhost... > > From: "Rob Dixon" <[EMAIL PROTECTED]> > > > There was an example in there that demonstrated > > > using 'our' to implement a C-l

Question about the Shell module

2003-01-22 Thread Bruno Negrao
Hi all, today I discovered a module, the Shell.pm module, which gives you the possibility to run shell commands directly from perl. to use it, you should try: use Shell; sub ls; print ls('/etc'); What is the advantage of using all this syntax instead of simply use a:`ls /etc`; ? I mean, I don't k

Text match criteria

2003-01-22 Thread Alan C.
Hello, I figured out how to substitute. But I need howto help as I didn't know how to print out my desired matched items. Thanks! Instead of the substitution, I want to match and keep. In other words, I want to extract and keep/print up to the blank line so that the output will be: semeste

Re: Why shouldn't class modules export anything?

2003-01-22 Thread Rob Dixon
Rob Richardson wrote: > Simran, > > Thank you very much for your reply. I see what you're saying about > @EXPORT. I really don't want to be mixing namespaces. And yes, cars > do have names. I'm not modeling them in my system yet, but I should > be ready. > > I have a couple of follow-up questio

Re: My, our, local

2003-01-22 Thread Rob Dixon
Jenda Krynicky wrote: > From: "Rob Dixon" <[EMAIL PROTECTED]> >> "Jenda Krynicky" <[EMAIL PROTECTED]> wrote in message >> 3E2E9EDB.5722.62EB5D@localhost">news:3E2E9EDB.5722.62EB5D@localhost... >>> From: "Rob Dixon" <[EMAIL PROTECTED]> There was an example in there that demonstrated using

Question about a hash.

2003-01-22 Thread Ben Siders
Ok, this is the strangest thing. I've been staring at it for an hour, and it has to be something monumentally stupid. I have a function that is given a hash reference and it then just looks up one of its elements in an anonymous hash that points to other functions. Here's the function (I remo

Getting Perl

2003-01-22 Thread Scott Barnett
Hi All, Is there a free version of Perl that I can get that will run on Win98 machine. I want to start learning Perl. checked ActiveState but it looks like that is only a 15 or 30 day evaluation, I may be wrong? Thanks, Scott Barnett Home Care Medical - Technical Support Specialist 1-800-369-6

RE: Random Access File

2003-01-22 Thread Dan Muey
> How to access and create RandomAccessFile > could u send me simple example? Use open. If you want more help give more details. > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

My Mistake

2003-01-22 Thread Scott Barnett
Hi Again, Never mind I was looking at the Perl Dev Kit, which is an evaluation. Scott Barnett Home Care Medical - Technical Support Specialist 1-800-369-6939 1-262-786-9870 ext.214 E-Mail [EMAIL PROTECTED] Confidentiality Notice: This e-mail message, including any attachments, is for the sole u

Re: Question about a hash.

2003-01-22 Thread Ben Siders
OK apparantly I have a scoping problem below. If I add this line: print "ok\n" if exists $db_table->{codeline}; inside my function, I get nothing. If I put it right after the db_table declaration, it prints. So... are 'my' variables outside of a function not visible inside it? Ben Siders wr

Re: looking for a string in multiple files

2003-01-22 Thread Marco
On Wed, Jan 22, 2003 at 01:07:19PM -, Rob Dixon <[EMAIL PROTECTED]> wrote: > push @files, join ' and ', delete @files[-2,-1]; Your program successfully matches the entries, prints in which files the string is found: Zone foo.com was found in files and boot.fixed But it also pr

Re: Question about the Shell module

2003-01-22 Thread Jenda Krynicky
From: "Bruno Negrao" <[EMAIL PROTECTED]> > Hi all, today I discovered a module, the Shell.pm module, which gives > you the possibility to run shell commands directly from perl. to use > it, you should try: > > use Shell; > sub ls; > print ls('/etc'); > > What is the advantage of using all this sy

Re: Text match criteria

2003-01-22 Thread Rob Dixon
Alan C. wrote: > Hello, > > I figured out how to substitute. But I need howto help as I didn't > know how to print out my desired matched items. Thanks! > > Instead of the substitution, I want to match and keep. In other > words, I want to extract and keep/print up to the blank line > > so that

Re: My, our, local

2003-01-22 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > > From: "Rob Dixon" <[EMAIL PROTECTED]> > >> "Jenda Krynicky" <[EMAIL PROTECTED]> wrote in message > >> 3E2E9EDB.5722.62EB5D@localhost">news:3E2E9EDB.5722.62EB5D@localhost... > >>> From: "Rob Dixon" <[EMAIL PROTECTED]> > There was

RE: Getting Perl

2003-01-22 Thread Westgate, Jared
Scott Barnett wrote: > Is there a free version of Perl that I can get that will run > on Win98 machine. I want to start learning Perl. checked > ActiveState but it looks like that is only a 15 or 30 day > evaluation, I may be wrong? I assume you want a binary, not the source code? Well, chec

Re: looking for a string in multiple files

2003-01-22 Thread Rob Dixon
Marco wrote: > On Wed, Jan 22, 2003 at 01:07:19PM -, Rob Dixon > <[EMAIL PROTECTED]> wrote: > >> push @files, join ' and ', delete @files[-2,-1]; > > Your program successfully matches the entries, prints in which files > the string is found: > > Zone foo.com was found in files and

Re: My, our, local

2003-01-22 Thread Rob Dixon
Jenda Krynicky wrote: > I don't say you should not use our(). All I say is you should know > exactly what it means and use each of > sub { > our $var; > ... > } > > sub { > my $var; > ... > } > > { > my $var; > sub { > ... > } > } > where it belongs. And there we disagree. Which is fine. I've neve

RE: Getting Perl

2003-01-22 Thread Beau E. Cox
Hi - > -Original Message- > From: Scott Barnett [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 4:33 AM > > Hi All, > > Is there a free version of Perl that I can get that will run on > Win98 machine. I want to start learning Perl. checked ActiveState > but it looks like

RE: My Mistake

2003-01-22 Thread Beau E. Cox
Hi - > -Original Message- > From: Scott Barnett [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 4:38 AM > To: [EMAIL PROTECTED] > Subject: My Mistake > > > Hi Again, > > Never mind I was looking at the Perl Dev Kit, which is an evaluation. > > Scott Barnett > Home Care Me

project

2003-01-22 Thread kasi ramanathen
hellow friends, i want to submite a project to collage. can you give me some ideas and guidence to do my project. kasi Catch all the cricket action. Download Yahoo! Score tracker

Re: project

2003-01-22 Thread Rob Dixon
Kasi ramanathen wrote: > hellow friends, > > i want to submite a project to collage. can you give me some ideas > and guidence to do my project. > Hi Kasi We can give you ideas and guidance, but you must start the ball rolling. Only you know what kind of project you should do, what you are capabl

Re: Getting Perl

2003-01-22 Thread David T-G
Scott -- ...and then Scott Barnett said... % % Hi All, Hi! % % Is there a free version of Perl that I can get that will run on Win98 machine. I want to start learning Perl. checked ActiveState but it looks like that is only a 15 or 30 day evaluation, I may be wrong? Looks like you are, but

project

2003-01-22 Thread kasi ramanathen
dear friends you can give me idea for any poject networking, using database, testing programm, writting script for unix, simple or complex. say about a project that has value using it i may get some good job. kasi Catch all the cricket action. Download Yahoo! Score tracker

Re: project

2003-01-22 Thread David T-G
kasi -- ...and then kasi ramanathen said... % % dear friends % % you can give me idea for any poject networking, using database, testing programm, writting script for unix, simple or complex. say about a project that has value using it i may get some good job. I have one, then. Develop a da

How do you code a "tail -f" if you're using Net::Rsh?

2003-01-22 Thread Richard Fernandez
There's a FAQ that deals with coding a "tail -f" if you're logfile is on the same box as the perl script. But what if you want to use rsh to tail a file remotely? Here's what I have: --8<---8<--- #!/u

Re: project

2003-01-22 Thread Mark Goland
How about a gui wraper for IPFW, that will run on say G-nome ?? Mark - Original Message - From: "kasi ramanathen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 12:18 PM Subject: project > > dear friends > > you can give me idea for any poject networking,

RE: project

2003-01-22 Thread Dan Muey
I'd pay for this one : A tk sort of module that would allow you to write a script and use native MAC OSX GUI screens so that a perl script would look just like a cocoa program or any other app and be all creamy and sexxy like OS X! Shouldn't be impossible I just don't have time. And talk

A better way, a perl way?

2003-01-22 Thread Jerry Preston
I am looking for a better way, a perl way for the following: foreach ( @data ) ) { s/^ //; $data_[ $jp++ ] = $_; } I have seen a one liner using while, but I do not remember. Thanks, Jerry

For loop aliasing AND changing an array within a loop.

2003-01-22 Thread Zeus Odin
When you loop through an array for(@array){ ... } should not each array element be aliased into $_: if you change $_, you also change the element? This is what I remembered. However, a problem I just encountered shook this recollection. I think I read somewhere that you should NOT delete arra

Re: A better way, a perl way?

2003-01-22 Thread Jeff 'japhy' Pinyan
On Jan 22, Jerry Preston said: >I am looking for a better way, a perl way for the following: > >foreach ( @data ) ) { > s/^ //; > $data_[ $jp++ ] = $_; >} You do realize that you're modifying the elements in @data as well, right? So that, unless $jp starts at some value other th

Re: A better way, a perl way?

2003-01-22 Thread Frank Wiles
.--[ Jerry Preston wrote (2003/01/22 at 11:59:14) ]-- | | I am looking for a better way, a perl way for the following: | | foreach ( @data ) ) { |s/^ //; |$data_[ $jp++ ] = $_; | } | `- I'm assumi

RE: How do you code a "tail -f" if you're using Net::Rsh?

2003-01-22 Thread Bob Showalter
Richard Fernandez wrote: > There's a FAQ that deals with coding a "tail -f" if you're logfile is > on the same box as the perl script. > But what if you want to use rsh to tail a file remotely? > > Here's what I have: > --8<-- > -8<--

two scripts, two servers, talking to each other

2003-01-22 Thread Dan Muey
Hello, My question is : Is there a better,easier, more secure, prettier way to do what I'm outlining below? There are some screamingly obvious security issues but at this point I'm more interested in getting it to do what I need then I'll focus on redesigning for security. I have a script

RE: A better way, a perl way?

2003-01-22 Thread Bob Showalter
Frank Wiles wrote: > .--[ Jerry Preston wrote (2003/01/22 at 11:59:14) ]-- | > | I am looking for a better way, a perl way for the following: | > | foreach ( @data ) ) { > |s/^ //; > |$data_[ $jp++ ] = $_; > | } > | > `---

Error in the compilation of vpopmail module

2003-01-22 Thread Bruno Negrao - Perl List
Hi, I'm trying to install a module from CPAN, the vpopmail.pm module. I'm running redhat 8.0 + vpopmail 5.2.1. When I run 'make' to compile the makefile created by the makefile.PL script, i receive the following error messages: -

RE: two scripts, two servers, talking to each other

2003-01-22 Thread Dan Muey
In case you're wondering why I don't just use DBI to get the data directly from the database in showmedata.cgi the reason is this : I want to have my database information in one script that is on a server I control, instead of having it on possibly hundreds of scripts all over the internet. B

perl and progress database.

2003-01-22 Thread Gerardo
i want to know if i can to run perl with the dbi module and to view a Progress database. ... and sorry ... my english is very bad. thanks. -- Gerardo D. Rios -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl and progress database.

2003-01-22 Thread Ben Siders
Yes. DBI has support for PostgreSQL. You can perform almost any transaction through it that you would at the command line. Gerardo wrote: i want to know if i can to run perl with the dbi module and to view a Progress database. ... and sorry ... my english is very bad. thanks. -- Benjam

RE: perl and progress database.

2003-01-22 Thread Bob Showalter
Ben Siders wrote: > Yes. DBI has support for PostgreSQL. You can perform almost any > transaction through it that you would at the command line. > > Gerardo wrote: > > > i want to know if i can to run perl with the dbi module and to view > > a Progress database. n.b. "Progress" <> "PostgreSQL

RE: two scripts, two servers, talking to each other

2003-01-22 Thread Bob Showalter
Dan Muey wrote: > Hello, > > My question is : > > Is there a better,easier, more secure, > prettier way to do what I'm outlining below? > > There are some screamingly obvious security issues but > at this point I'm more interested in getting it to do > what I need then I'll focus on redesigning

Re: problems with big numbers

2003-01-22 Thread david
Konrad Foerstner wrote: > Hi, > > My todays problem: I extraxt some data out of a file, stored it etc., put > them into an equation and print it to an outputfile in which the results > are sorted by some of their values. The equation was first a linear one > (and worked perfectly), but now I woul

Re: two scripts, two servers, talking to each other

2003-01-22 Thread Todd W
"Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, My question is : Is there a better,easier, more secure, prettier way to do what I'm outlining below? There are some screamingly obvious security issues but at this point I'm more interested in ge

RE: two scripts, two servers, talking to each other

2003-01-22 Thread Dan Muey
> You are reinventing web services. check out the SOAP::Lite I was wondering about that and also Net::Shared . Thanks for the info. > toolkit. The module I'd use for your exercise is > XMLRPC::Lite, packaged in the SOAP::Lite distro. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: A better way, a perl way?

2003-01-22 Thread david
Jeff 'Japhy' Pinyan wrote: > > If you DON'T want that, you'd have to do: > > for (@data) { > (my $copy = $_) =~ s/^ //; > push @data_, $copy; > } > > Or something to that effect. Here's a one-liner: > > @data_ = map { (my $copy = $_) =~ s/^ //; $copy } @data; > a bit shorter:

Re: perl and progress database.

2003-01-22 Thread Ben Siders
Ah, I skimmed over it too fast. My bad. Bob Showalter wrote: Ben Siders wrote: Yes. DBI has support for PostgreSQL. You can perform almost any transaction through it that you would at the command line. Gerardo wrote: i want to know if i can to run perl with the dbi module and to vie

Size of number in scalar

2003-01-22 Thread Christopher D . Lewis
Someone posted a question as to the size of number which a scalar would tolerate. When I wanted to know what size boundaries I faced in certain variable types in C, I wrote a little program that added 1 to a variable until n+1 was less than n, at which point I concluded the variable had been r

Re: perl and progress database.

2003-01-22 Thread Christopher D . Lewis
On Wednesday, January 22, 2003, at 12:40 PM, Gerardo wrote: i want to know if i can to run perl with the dbi module and to view a Progress database. DBI:: lets you get data into and out of databases, though you need DBI::Pg to interface with PostgreSQL. Search CPAN for perl modules to get y

Re: Size of number in scalar

2003-01-22 Thread Ben Siders
You'll be waiting a long time. Perl quickly moves into scientific notation and can handle arbitrarily large values. I wrote a similar program a while back and got bored with it when the count hit about 10^17. :) Christopher D. Lewis wrote: Someone posted a question as to the size of number w

RE: Size of number in scalar

2003-01-22 Thread Westgate, Jared
Chris Said: > Someone posted a question as to the size of number which a > scalar would > tolerate. I guess I missed this thread, so I hope I'm not repeating information. :) > Perl seems to > tolerate quite a bit of this, as the app has been churning away, > printing every so many number ju

Re: Size of number in scalar

2003-01-22 Thread david
Ben Siders wrote: > You'll be waiting a long time. Perl quickly moves into scientific > notation and can handle arbitrarily large values. I wrote a similar > program a while back and got bored with it when the count hit about > 10^17. :) if you don't want to wait but still want to try to push P

RE: perl and progress database.

2003-01-22 Thread Bob Showalter
Christopher D. Lewis wrote: > NOT Abandoned!! Very active! > On Wednesday, January 22, 2003, at 12:54 PM, Bob Showalter wrote: > > > Ben Siders wrote: > > > Yes. DBI has support for PostgreSQL. You can perform almost any > > > transaction through it that you would at the command line. > > > >

RE: Size of number in scalar

2003-01-22 Thread Russ Foster
I must have missed the original thread, but this one caught my eye. I have a script that parses firewall log files and counts the bytes that meet a certain criteria. Usually I do this in one month at a time and I occasionally get negative numbers as answers when I get up over a few billion bytes.

Re: Question about a hash.

2003-01-22 Thread John W. Krahn
Ben Siders wrote: > > Ben Siders wrote: > > > > Ok, this is the strangest thing. I've been staring at it for an hour, > > and it has to be something monumentally stupid. > > > > I have a function that is given a hash reference and it then just > > looks up one of its elements in an anonymous hash

Re: For loop aliasing AND changing an array within a loop.

2003-01-22 Thread John W. Krahn
Zeus Odin wrote: > > When you loop through an array > >for(@array){ ... } > > should not each array element be aliased into $_: if you change $_, you > also change the element? Yes, that is correct. > This is what I remembered. However, a problem I > just encountered shook this recollectio

Re: For loop aliasing AND changing an array within a loop.

2003-01-22 Thread Paul Johnson
On Wed, Jan 22, 2003 at 02:10:34PM -0800, John W. Krahn wrote: > Zeus Odin wrote: > > I think I read somewhere that you should NOT delete array elements from > > within a loop. However, the following works very well. > > I think that you are thinking of hashes. From perlsyn: If any part of LIS

Re: looking for a string in multiple files

2003-01-22 Thread John W. Krahn
Rob Dixon wrote: > > Marco wrote: > > On Wed, Jan 22, 2003 at 01:07:19PM -, Rob Dixon > > <[EMAIL PROTECTED]> wrote: > > > >> push @files, join ' and ', delete @files[-2,-1]; > > > > Your program successfully matches the entries, prints in which files > > the string is found: > > >

Re: looking for a string in multiple files

2003-01-22 Thread John W. Krahn
"John W. Krahn" wrote: > > Rob Dixon wrote: > > > > Marco wrote: > > > On Wed, Jan 22, 2003 at 01:07:19PM -, Rob Dixon > > > <[EMAIL PROTECTED]> wrote: > > > > > >> push @files, join ' and ', delete @files[-2,-1]; > > > > > > Your program successfully matches the entries, prints in

Re: For loop aliasing AND changing an array within a loop.

2003-01-22 Thread John W. Krahn
Paul Johnson wrote: > > On Wed, Jan 22, 2003 at 02:10:34PM -0800, John W. Krahn wrote: > > > > I think that you are thinking of hashes. > > From perlsyn: > > If any part of LIST is an array, "foreach" will get very > confused if you add or remove elements within the loop > body, for example

Re: project

2003-01-22 Thread R. Joseph Newton
kasi ramanathen wrote: > dear friends > > you can give me idea for any poject networking, using database, testing programm, >writting script for unix, simple or complex. say about a project that has value using >it i may get some good job. > > kasi Hi Kasi, I'd suggest that you look around you

Removing HTML Tags

2003-01-22 Thread Johnstone, Colin
Gidday all, When using our CMS (Interwoven Teamsite) I want to remove from any textarea any html tags that I don't want content contributors to use. On in particular is the font tag. Can one use a regex to remove these? I guess Im looking for a regex to remove anything between the font tags e

Re: translation

2003-01-22 Thread GoodTimeTribe
Hrmm.. now, how to do the reverse. I know you're wondering, "how new is NEW," but I'm a seasoned pascal and standard c programmer, who's busy schedule hasn't allow me to read much past strings in the manual, so I I've never heard of "tr". peace be with you Joshua the manualAt 1/20/2003 04:35 P

RE: Removing HTML Tags

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 12:29 PM > To: '[EMAIL PROTECTED]' > Subject: Removing HTML Tags > > > Gidday all, > > When using our CMS (Interwoven Teamsite) I want to remove > from any textarea any html ta

Re: Removing HTML Tags

2003-01-22 Thread simran
To do it reliably use something like HTML::Parser. You can come up with a very simple regex to take care of the simple cases: eg. $html =~ s!.*?!!igm; But you will run into problems very soon with nested tags etc... On Thu, 2003-01-23 at 12:28, Johnstone, Colin wrote: > Gidday all, > >

Rather complex regular expression for the preg_match_all function

2003-01-22 Thread Andreas Sheriff
Hi, I'm trying to construct a regular expression to find HTML open tags without closing tags up to another of the same HTML open tag or a closing tag of a different type that's no enclosed in the implied closing tag optional HTML tag (for example doesn't require a closing tag. The closing tag is

Re: Removing HTML Tags

2003-01-22 Thread R. Joseph Newton
"Johnstone, Colin" wrote: "I guess Im looking for a regex to remove anything between the font tags e.g and . Of course their could be anynumber of attributes in the openning font tag." Hi Colin, Try: s/\<\/(0,1)font.*\>?//g; HTH, Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

FW: Removing HTML Tags

2003-01-22 Thread Toby Stuart
small modification below. > -Original Message- > From: Toby Stuart [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 12:56 PM > To: 'Johnstone, Colin' > Cc: '[EMAIL PROTECTED]' > Subject: RE: Removing HTML Tags > > > > > > -Original Message- > > From: Johnstone, Col

finding protocal script is called with

2003-01-22 Thread Dan
Hello, here's one for you all. What is the fastest way to find out what protocal a script is being called from ? IE http, https, ftp ,etc currently I have to use : sub set_prot { use CGI self_url; $self_url_query = CGI::new(); $self_url = $self_url_query->self_url(); if($self_url

Re: FW: Removing HTML Tags

2003-01-22 Thread simran
On Thu, 2003-01-23 at 13:12, Toby Stuart wrote: > small modification below. > > > -Original Message- > > From: Toby Stuart [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 23, 2003 12:56 PM > > To: 'Johnstone, Colin' > > Cc: '[EMAIL PROTECTED]' > > Subject: RE: Removing HTML Tags > >

Resolving IP's/Hostmasks

2003-01-22 Thread dan
Hey I need a method that resolves Hostmasks into IP's, and IP's into hosts. I can do the former, with: sub resolve { return inet_ntoa(scalar gethostbyname("@_")); } $data = resolve("host.mask.com"); However, if I give it an IP address, it will just return nothing, even if the IP address is reso

RE: finding protocal script is called with

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 1:19 PM > To: [EMAIL PROTECTED] > Subject: finding protocal script is called with > > > Hello, here's one for you all. > > What is the fastest way to find out what protocal a script is being

Re: Resolving IP's/Hostmasks

2003-01-22 Thread simran
Try the function: gethostbyaddr or you could use: http://search.cpan.org/author/JHI/perl-5.8.0/lib/Net/hostent.pm On Thu, 2003-01-23 at 13:21, dan wrote: > Hey > > I need a method that resolves Hostmasks into IP's, and IP's into hosts. I > can do the former, with: > > sub resolve { > return

Re: finding protocal script is called with

2003-01-22 Thread simran
Assuing you are using apache and only ever run ssl over port 443 (which is the standard) you could use the SERVER_PORT environment variable... aka: $secure = $ENV{'SERVER_PORT'} eq '443' ? 1 : 0; if ($secure) { # do secure stuff... } else { ... } On Thu, 2003-01-23 at 13:19

RE: FW: Removing HTML Tags

2003-01-22 Thread Toby Stuart
> > > > -Original Message- > > > > From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] > > > > Sent: Thursday, January 23, 2003 12:29 PM > > > > To: '[EMAIL PROTECTED]' > > > > Subject: Removing HTML Tags > > > > > > > > > > > > Gidday all, > > > > > > > > When using our CMS (Interwoven

Re: finding protocal script is called with

2003-01-22 Thread Dan
simran wrote: Assuing you are using apache and only ever run ssl over port 443 (which is the standard) you could use the SERVER_PORT environment variable... aka: $secure = $ENV{'SERVER_PORT'} eq '443' ? 1 : 0; I may not have control over that, but that's agood idea if I did if ($secure

RE: FW: Removing HTML Tags

2003-01-22 Thread Johnstone, Colin
Thank you all for your help. -Original Message- From: Toby Stuart [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 13:44 To: 'simran' Cc: '[EMAIL PROTECTED]' Subject: RE: FW: Removing HTML Tags > > > > -Original Message- > > > > From: Johnstone, Colin [mailto:[EMAIL

Find same key in 2 hashes?

2003-01-22 Thread Bill Akins
Hi all, I have 2 hashes, the keys are a unique field. Hashes are built like this: open (INPUTFH, ) or die "Can't find allusers.chr file!\n"; while ( $line = ) { #set values here here... } push ( @{ $NS{$BV_NF} }, $NS_Name, $NS_Cont, $W_Name, $V_FID, $G_P, $GWD, $NS_Creation, $NS_Expira

Re: finding protocal script is called with

2003-01-22 Thread Dan
Below works like a charm, thanks for the idea! Now two questions more come to mind : 1 - would url() work faster than self_url() since it doesn't have to use the query string or is url() fetched by taking self_url() and cutting it down, IE more steps? 2 - Is there any way to shorten/speed/improve

RE: finding protocal script is called with

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 2:14 PM > To: Toby Stuart > Cc: '[EMAIL PROTECTED]' > Subject: Re: finding protocal script is called with > > > Below works like a charm, thanks for the idea! > Now two questions more come to

Re: Resolving IP's/Hostmasks

2003-01-22 Thread John W. Krahn
Dan wrote: > > Hey Hello, > I need a method that resolves Hostmasks into IP's, and IP's into hosts. I > can do the former, with: > > sub resolve { > return inet_ntoa(scalar gethostbyname("@_")); You should be using $_[0] here instead of "@_". What

Re: Find same key in 2 hashes?

2003-01-22 Thread John W. Krahn
Bill Akins wrote: > > Hi all, Hello, > I have 2 hashes, the keys are a unique field. Hashes are built like this: > > open (INPUTFH, ) or die "Can't find allusers.chr file!\n"; > while ( $line = ) { > #set values here here... > } > push ( @{ $NS{$BV_NF} }, $NS_Name, $NS_Cont, $W_Name, $V_F

cgi script invoking an exe

2003-01-22 Thread MJ
Hi, I am new to CGI. I just want to know if we can execute an application/exe file on the winnt server using the CGI script depending on the user form input over the net. Mike __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. h

free web hosting with full CGI service?

2003-01-22 Thread MJ
Hi, I am looking for some free webhosting services where there is full support for CGI. Though, I checked out few that offer free hosting service, there is a limitation in cgi script support only till some extent. I may not need much of free space but require full cgi support. Can one suggest me f

use and require

2003-01-22 Thread Beau E. Cox
Hi - I thought I had a grip on this, but... Most of my reading (Camel, perldocs, etc) suggest that 'require Foo::Bar' should be used instead of 'use Foo::Bar' within modules. I am in the process of building a series of modules for a project and am having problems with 'require'; does whoever uses