Re: cgi script invoking an exe

2003-01-23 Thread Janek Schleicher
On Wed, 22 Jan 2003 21:22:22 -0800, Mj wrote: > 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. And your Perl question is ... ? However, if you want to execute an exe file

Re: looking for a string in multiple files

2003-01-23 Thread Rob Dixon
Hello John. John W. Krahn wrote: >> How about this: :-) > > Oops! slight change. :-) > > > use strict; > use warnings; > > my %zone; > > # get zone names from named.conf type files > @ARGV = qw( one.txt two.txt three.txt ); > /^zone\b[^"]*"([^"]+)/ and push @{$zone{$1}}, "$ARGV, " while <>; I

Re: free web hosting with full CGI service?

2003-01-23 Thread David T-G
Mike -- ...and then MJ said... % % Hi, Hi! % I am looking for some free webhosting services where % there is full support for CGI. Though, I checked out Have you asked google yet? The same question keeps popping up on the php list; I finally ran a search for 'free php web hosting' or simila

Re: Size of number in scalar

2003-01-23 Thread Rob Dixon
Christopher D . Lewis wrote: > 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

Re: use and require

2003-01-23 Thread Rob Dixon
Beau E. Cox wrote: > 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

Re: perl and progress database.

2003-01-23 Thread Christopher D . Lewis
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. Gerardo wrote: i want to know if i can to run perl wit

Re: Getting Perl

2003-01-23 Thread Bob X
"Beau E. Cox" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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

Re: How to use ATL COM components in perl

2003-01-23 Thread Nilesh
"Pankaj Kapare" <[EMAIL PROTECTED]> wrote in message 005901c2bf02$59dada70$a300a8c0@anurag">news:005901c2bf02$59dada70$a300a8c0@anurag... Hi, Can anybody tell me how to use perl components in perl. Pankaj. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: project

2003-01-23 Thread Nilesh
I thinks thats a good advice from Joseph! Bravo man Nilesh "R. Joseph Newton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > kasi ramanathen wrote: > > > dear friends > > > > you can give me idea for any poject networking, using database, testing programm, writ

Newb Help? Anyone?

2003-01-23 Thread litiglio
Where could I find a good reference wrt starting Perl? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: looking for a string in multiple files

2003-01-23 Thread John W. Krahn
Rob Dixon wrote: > > Hello John. Well hello Rob, > John W. Krahn wrote: > >> How about this: :-) > > > > Oops! slight change. :-) > > > > use strict; > > use warnings; > > > > my %zone; > > > > # get zone names from named.conf type files > > @ARGV = qw( one.txt two.txt three.txt ); > > /^zon

Weekly list FAQ posting

2003-01-23 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: Find same key in 2 hashes?

2003-01-23 Thread Bill Akins
Thank you John!!! Worked perfectly. >>> "John W. Krahn" <[EMAIL PROTECTED]> 01/22/03 11:18PM >>> 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

Re: A better way, a perl way?

2003-01-23 Thread Jeff 'japhy' Pinyan
On Jan 22, david said: >> @data_ = map { (my $copy = $_) =~ s/^ //; $copy } @data; > >s/^ // for(@data_ = @data); Sigh. I usually do that. I was a little slow on the idiom-uptake. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http:

How bad is it to use global variables?

2003-01-23 Thread Nils-Anders Persson
Hello, I've seen many discussions regarding the use of "use strict". What i wonder is why is it so bad using global variables? And another question how do you define constants in perl? regards, Nils-Anders -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: looking for a string in multiple files

2003-01-23 Thread Rob Dixon
John W. Krahn wrote: > > I think you mean: > > $files = join ' and ', (join ', ', @files), $_ for pop @files; > > But that will prepend ' and ' if there is only one file name in > @files. Thanks. > It also doesn't seem right to use a loop just to force 'pop > @files' to evaluate first. It's

RE: How bad is it to use global variables?

2003-01-23 Thread Kipp, James
> > I've seen many discussions regarding the use of "use strict". > > What i wonder is why is it so bad using global variables? > > And another question how do you define constants in perl? > use strict does not disallow global variables, it simply enforced you to declare variables with one of

RE: How bad is it to use global variables?

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 14:00:19 +0100, "Nils-Anders Persson" <[EMAIL PROTECTED]> wrote: > Hello, > > I've seen many discussions regarding the use of "use strict". Probably shouldn't be any discussion. Just 'use' it. :-) > > What i wonder is why i

RE: How bad is it to use global variables?

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 08:52:01 -0500, "Kipp, James" <[EMAIL PROTECTED]> wrote: there is a article called > "coping with scoping" you might want to read. I don't have the URl handy, > but a google search will find it. > I keep it handy: http://per

Re: How bad is it to use global variables?

2003-01-23 Thread Rob Dixon
Nils-Anders Persson wrote: > Hello, > > I've seen many discussions regarding the use of "use strict". > > What i wonder is why is it so bad using global variables? > It's not. It's bad to use global variables /all the time/, even if you don't need them. Most variables are only in use for short sec

RE: use and require

2003-01-23 Thread Beau E. Cox
Hi Rob - > -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 1:20 AM > To: [EMAIL PROTECTED] > Subject: Re: use and require > > > Beau E. Cox wrote: > > Hi - > > > > I thought I had a grip on this, but... > > ... > > need it? Will I get mu

Re: cgi script invoking an exe

2003-01-23 Thread Todd W
"Janek Schleicher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 22 Jan 2003 21:22:22 -0800, Mj wrote: > > > 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 th

RE: Newb Help? Anyone?

2003-01-23 Thread Dan Muey
> > Where could I find a good reference wrt starting Perl? For a beginner I'd highly recommend the Peachpit Press Visual Quick Start Guide to Perl By Elizabeth Castro ( I think ). It starts by not assuming you are already a 30 year unix veterin and explains everything in plain english and

RE: free web hosting with full CGI service?

2003-01-23 Thread Dan Muey
May I ask what kind of 'support for CGI' you're looking for? What kind of stuff do want for free? What kind of space/bandwidth do you expect to use? Do you mind ads? I may know of a few places... Dan > Mike -- > > ...and then MJ said... > % > % Hi, > > Hi! > > > % I am looking for some fre

cgi and symbolic links

2003-01-23 Thread Harry Putnam
I ran into something today I've never noticed any comment here about. Maybe I should know this but never ran into it before. I wanted to use a single cgi script to generate several different formated pages. That is, the output page would have different ordering depending on the content of ENV{SC

RE: cgi and symbolic links

2003-01-23 Thread Dan Muey
> I ran into something today I've never noticed any comment > here about. Maybe I should know this but never ran into it before. > > I wanted to use a single cgi script to generate several > different formated pages. That is, the output page would > have different ordering depending on the

Re: cgi and symbolic links

2003-01-23 Thread Pete Emerson
I put a working test.pl in /var/www/cgi-bin. Then I symlinked test2.pl to it. When I loaded up test2.pl, the web page said: Forbidden You don't have permission to access /cgi-bin/test2.pl on this server. Then I put this in my section of httpd.conf: Options FollowSymLinks Now test2 works, and th

Multiple use of same module question

2003-01-23 Thread Dan Muey
Here's something I've been wondering What kind of performance issues are there if you do a 'use' on the same module in the same script twice or more? Before you go ' Well that's stupid, why would you do that? ' let me explain : Script one has use CGI; require stumpy.lib; stumpy_funtion

RE: cgi and symbolic links

2003-01-23 Thread Dan Muey
> I put a working test.pl in /var/www/cgi-bin. > Then I symlinked test2.pl to it. > When I loaded up test2.pl, the web page said: > Forbidden > You don't have permission to access /cgi-bin/test2.pl on this server. > > Then I put this in my section of > httpd.conf: Options FollowSymLinks That's

"1;"?

2003-01-23 Thread Rob Richardson
Greetings! Dan Muey's stumpy.lib file, quoted below, ends with a statement consisting of a single contstant value: "1;". This is the second time I've seen this today. What is its purpose? Thanks! RobR --- Dan Muey <[EMAIL PROTECTED]> wrote: > sub stumpy_function1 { > > use CGI; >

Re: Resolving IP's/Hostmasks

2003-01-23 Thread dan
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 geth

RE: "1;"?

2003-01-23 Thread Dan Muey
At the end of a lib file ( in the script you have require lib.lib; and lib.lib doesn't have #!/usr/bin/perl because it's a library not a script ) you put a 1; so that the require statement returns true. I believe it's a boolean thing. So if it does a require and can't do it ( ie gets 0 returne

Re: Multiple use of same module question

2003-01-23 Thread Rob Dixon
Hi Dan Dan Muey wrote: > Here's something I've been wondering > > What kind of performance issues are there if you do a 'use' on the > same module in the same script twice or more? I posted the following earlier today in response to a question of Beau's: Rob Dixon wrote: > Beau E. Cox wrote:

RE: Multiple use of same module question

2003-01-23 Thread Dan Muey
So I don't have to worry about doing use Module; or varitions of it like use Module stuffdealy; more than once causing performance issues? Great, thanks that's load off! Dan > > Hi Dan > > Dan Muey wrote: > > Here's something I've been wondering > > > > What kind of performance issues ar

RE: Multiple use of same module question

2003-01-23 Thread Timothy Johnson
And that finally explains why in some of my scripts using the Win32::Lanman module I have to do a 'require Win32;' instead of a 'use Win32' if I don't want to get warning messages about conflicting constants. It's always been one of those "I got it working, I'll figure out why when I get some ext

How do I test a variable to see if it is a scalar or a hash?

2003-01-23 Thread Ken Lehman
How do I test a variable to see what type of variable it is(scalar, array, hash, etc...)? What I am trying to accomplish is I have a hash and some values are scalar data and some values are nested hashes and I need a way to tell the difference. Book or web site references are welcome, thanks in adv

Probably a simple hash question

2003-01-23 Thread Lara J. Fabans
Hi, perl-friends, Here's the setup: I have set up a hash %categories where the key is one number and the value is another i.e. $categories('1094') = 100049-0220-14 So, further on down, I'm trying to do a lookup in %categories to see if a value is there. (I can swap the key and the value in

RE: Probably a simple hash question

2003-01-23 Thread Dan Muey
> Hi, perl-friends, > > Here's the setup: > I have set up a hash %categories where the key is one number > and the value > is another > i.e. $categories('1094') = 100049-0220-14 do you mean $catagories{'1094'} ? > > So, further on down, I'm trying to do a lookup in %categories > to see i

Re: How do I test a variable to see if it is a scalar or a hash?

2003-01-23 Thread Rob Dixon
Ken Lehman wrote: > How do I test a variable to see what type of variable it is(scalar, > array, hash, etc...)? > What I am trying to accomplish is I have a hash and some values are > scalar data and some values are nested hashes and > I need a way to tell the difference. > Book or web site referen

Re: Probably a simple hash question

2003-01-23 Thread Rob Dixon
Lara J. Fabans wrote: > Hi, perl-friends, > > Here's the setup: > I have set up a hash %categories where the key is one number and the > value is another > i.e. $categories('1094') = 100049-0220-14 You need quotation marks here, like this: $categories('1094') = '100049-0220-14'; othe

Re: cgi and symbolic links

2003-01-23 Thread Harry Putnam
Pete Emerson <[EMAIL PROTECTED]> writes: > I put a working test.pl in /var/www/cgi-bin. > Then I symlinked test2.pl to it. > When I loaded up test2.pl, the web page said: > Forbidden > You don't have permission to access /cgi-bin/test2.pl on this server. I won't be able to check this immediately

RE: How do I test a variable to see if it is a scalar or a hash?

2003-01-23 Thread Dan Muey
> > Ken Lehman wrote: > > How do I test a variable to see what type of variable it is(scalar, > > array, hash, etc...)? What I am trying to accomplish is I > have a hash > > and some values are scalar data and some values are nested > hashes and > > I need a way to tell the difference. > > Bo

Re: cgi and symbolic links

2003-01-23 Thread Harry Putnam
Harry Putnam <[EMAIL PROTECTED]> writes: regarding apache setting: Harry wrote: > I won't be able to check this immediately since I don't have root. > But will be able eventually. I turns out the conf file is only write protected so I was able to view it as user. Options FollowSymLinks

Quick regex prob

2003-01-23 Thread Dan Muey
Hiya, I'm having a brain melt right now : I do this to match one word only. m/^(\w+)$/) What regex do I need to match multiple , unkown ammounts of words? Will this do it? Or is there a better way? m/^\w[\w*|\s*]\w$/ I know there is but like Isaid my brain stopped for luunch a while ago. Thank

Re: "1;"?

2003-01-23 Thread Ben Siders
This is correct. When you include something the last line has to return a true value, so people often stick a 1; at the end. Consider it a bit of plumbing that a module or library just has to have. Dan Muey wrote: At the end of a lib file ( in the script you have require lib.lib; and lib.lib

RE: Probably a simple hash question

2003-01-23 Thread Dan Muey
> Morning, Dan Morning! > > At 11:50 AM 1/23/2003 -0600, you wrote: > > > i.e. $categories('1094') = 100049-0220-14 > > > > do you mean $catagories{'1094'} ? > > Yup, I did. Never type anything in from memory :-) I can't anyway because my memory doesn't work. > > > > > value is ther

Re: Quick regex prob

2003-01-23 Thread Rob Dixon
Dan Muey wrote: > Hiya, I'm having a brain melt right now : > > I do this to match one word only. > m/^(\w+)$/) That matches an entire line which is just a string of 'word' characters ( A-Z, a-z, 0-9, and underscore ). > What regex do I need to match multiple , unkown ammounts of words? > Will th

RE: Quick regex prob

2003-01-23 Thread Dan Muey
> Dan Muey wrote: > > Hiya, I'm having a brain melt right now : > > > > I do this to match one word only. > > m/^(\w+)$/) > > That matches an entire line which is just a string of 'word' > characters ( A-Z, a-z, 0-9, and underscore ). > > > What regex do I need to match multiple , unkown ammou

Re: Removing HTML Tags

2003-01-23 Thread david
Colin Johnstone 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. i know the temptation is to just use a reg. exp. but you should really consider using module that has proven t

RE: Quick regex prob

2003-01-23 Thread Liebert, Sander
/^\w(?:[\w\s]*\w)?$/ works well for multiple words, but how do I check a date that is in the format 01/22/03 I think that it is hanging up on the / Thanks for everyone's help. Sander -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:09 PM

RE: Quick regex prob

2003-01-23 Thread Dan Muey
> /^\w(?:[\w\s]*\w)?$/ works well for multiple words, but how > do I check a date that is in the format 01/22/03 > > I think that it is hanging up on the / You have to escape the / by backslaching it \/. Didn't you get my last email about it? Glad you joined the list! Dan > > > Thanks f

Re: Rather complex regular expression for the preg_match_all function

2003-01-23 Thread david
Andreas Sheriff wrote: > > I don't want to find tags with a complete structure. > ex: This is a

tag with a complete structure > > Instead, I want to find the tag with no closing tag, up to the next > tag or a closing tag of any type that doesn't have an opening tag > after the initial fo


Re: Resolving IP's/Hostmasks

2003-01-23 Thread david
Dan wrote: > > i've had a look at the Net::hostent > package that was suggested to me, seems ok, yet to grasp with how it > works > Net::hostent is easy to use: #!/usr/bin/perl -w use strict; use Net::hostent qw(gethost); my $h = gethost('216.239.51.101'); if($h){ print $h->name,"\n"

How to name STDIN from the command line

2003-01-23 Thread Michael Corgan
How do I name the STDIN from the command line. I'm trying to write a simple script to randomly pick a file from a file name I enter on the command line. This is what I have: my @cards = (<>); #set stdin to @cards while (<>) { my $random = rand(@cards); my $question = $cards[$rand

RE: How to name STDIN from the command line

2003-01-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Michael Corgan wrote: > How do I name the STDIN from the command line. I'm trying to write a > simple script to randomly pick a file from a file name I enter on the > command line. This is what I have: > > my @cards = (<>); #set stdin to @cards > while (<>) { > my $random = rand(@cards)

my struggle to work with structures... pls hlp!

2003-01-23 Thread Peter_Farrar
Hi All, I'm playing with record formats. I need to be able to have more than one kind of delimited format available at one time. I've written a sort routine to get the values in the order I want, but it assumes one variable name (in this example that is %delimited format). I want something a l

RE: How to name STDIN from the command line

2003-01-23 Thread Michael Corgan
I used the ARGV earlier, but received errors. So this is how the script looks now: #! /usr/local/bin/perl -w use strict; # # # $/ = "\n%\n"; while (<>) { my $random = rand(@ARGV); my $question = $ARGV[$random]; chomp $question; print $question; This is the error I a

RE: How to name STDIN from the command line

2003-01-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Michael Corgan wrote: > I used the ARGV earlier, but received errors. So this is how the > script looks now: > #! /usr/local/bin/perl -w > use strict; > # > # > # > > $/ = "\n%\n"; > > while (<>) { > my $random = rand(@ARGV); > my $question = $ARGV[$random]; > chomp $ques

Using HTML::Parser question

2003-01-23 Thread Dan Muey
Using the excellent example in the an earlier post from david: RE: Removing HTML Tags I came up with this slightly modified version based on the post and some cpan documentation and it works. It just brought up a few more questions. Basically I'm just trying to grab the body contents without com

Only numbers

2003-01-23 Thread dan
Hey again, I want to be able to check if a string contains only a number, no letters, etc. I have this procedure: if ($numexs =~ /[0-9]/{ # do something } which doesn't do what I want it to do, I want it to do more or less this: if ($numexs contains anything other than numbers) { # do so

Install a Module ???

2003-01-23 Thread Larry Sandwick
I am trying to install a Perl module on a Redhat 7.2 machine. Where do I put the module before I perform the following: Perl Makefile.PL Make Make test Make install I have uncompressed the file in a directory as "root" . Is there

RE: Only numbers

2003-01-23 Thread Dan Muey
> Hey again, > > I want to be able to check if a string contains only a > number, no letters, etc. I have this procedure: > > if ($numexs =~ /[0-9]/{ > # do something > } > > which doesn't do what I want it to do, I want it to do more > or less this: if ($numexs contains anything other

Re: Only numbers

2003-01-23 Thread Pete Emerson
if ($numexs=~/^\d+$/) { # do this if $numexs contains 1 or more numbers, nothing else } else { } Your regex just checks to make sure there's one number in your entire string. Anchor it at the beginning and the end, and then use a + to say "one or more occurances of" ... if ($numexs=~/^[0-9]+$

RE: Only numbers

2003-01-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
dan wrote: > Hey again, > > I want to be able to check if a string contains only a number, no > letters, etc. I have this procedure: > > if ($numexs =~ /[0-9]/{ > # do something > } > > which doesn't do what I want it to do, I want it to do more or less > this: if ($numexs contains anything

Tk with Perl

2003-01-23 Thread Tony Esposito
Help I have installed Perl 5.6.1 ( which works ) and Tcl/Tk 8.3 ( which works ) on Windows 2000 but when I try to perl -e "use Tk" I get the following error: Can't locate Tk.pm in @INC ( @INC contains: D:/Perl 5.6.1/lib D:/Perl 5.6.1/site/lib . ) at -e line 1. And I ca

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
> Using the excellent example in the an earlier post from david: > RE: Removing HTML Tags > > I came up with this slightly modified version based on the > post and some cpan documentation and it works. > It just brought up a few more questions. > Basically I'm just trying to grab the body cont

Re: Tk with Perl

2003-01-23 Thread Peter_Farrar
>I have installed Perl 5.6.1 ( which works ) and Tcl/Tk 8.3 ( which >works ) on Windows 2000 but when I try to perl -e "use Tk" I get the >following error: > >Can't locate Tk.pm in @INC ( @INC contains: D:/Perl 5.6.1/lib >D:/Perl 5.6.1/site/lib . ) at -e line 1. Have you d

RE: Tk with Perl

2003-01-23 Thread Tony Esposito
I did get my Perl and Tcl/Tk from ActiveState.com. So what you are saying is I just have to download this Tk.pm file from ActiveState.com and install it in D:\Perl\site\lib\Tk.pm and I'll be ok, correct? Thanks! Anthony (Tony) Esposito Database Administrator Inovis(tm), formerly Harbinger and Ext

RE: Install a Module ???

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 16:30:45 -0500, "Larry Sandwick" <[EMAIL PROTECTED]> wrote: > I am trying to install a Perl module on a Redhat 7.2 machine. Where do I > put the module before I perform the following: > > > > Perl Make

RE: Only numbers

2003-01-23 Thread Bob Showalter
dan wrote: > I want to be able to check if a string contains only a number, no > letters, etc. I have this procedure: > > if ($numexs =~ /[0-9]/{ > # do something > } > > which doesn't do what I want it to do, I want it to do more or less > this: if ($numexs contains anything other than numbe

Re: Using HTML::Parser question

2003-01-23 Thread david
Dan Muey wrote: > > #Q) Before I kill the head section or body tags below how do I grab these > #parts of it? 1 - my $title = IE the text between title tags > #2 - get body tag attributes my $body_attributes = IE in this example > #it'd be 'bodytag=attributes' > grabs the title and bo

RE: How to name STDIN from the command line

2003-01-23 Thread Michael Corgan
What I'm trying to write is a script to randomly write to standard output questions in a file everytime I execute the script. I seem to be getting these errors, though and I'm just not sure what I'm doing wrong. I'm not sure what the errors are telling me. From: "Wagner, David --- Senior Pr

RE: Tk with Perl

2003-01-23 Thread Bob Showalter
Tony Esposito wrote: > I did get my Perl and Tcl/Tk from ActiveState.com. So what you are > saying is I just have to download this Tk.pm file from > ActiveState.com and install > it in D:\Perl\site\lib\Tk.pm and I'll be ok, correct? Thanks! No, you don't just copy the .pm file. You need to use pp

Re: my struggle to work with structures... pls hlp!

2003-01-23 Thread david
Peter Farrar wrote: > > ## this part wont work... > #foreach my $fieldname ( sort delim_sort(\%delimited_format) keys % > {$delimited_format{fields}}){ > # print "$fieldname\t"; > # print ${${$delimited_format{fields}}{$fieldname}}{index}."\t"; > # print $delimited_format{delimiter}."

RE: Tk with Perl

2003-01-23 Thread Tony Esposito
I am using ActiveState Perl 5.6.1. That does not seem too old to me. Is there an ftp site where I can download Tk.pm? Then I will install Tk using the Perl Package Mgr. Thanks! Anthony (Tony) Esposito Database Administrator Inovis(tm), formerly Harbinger and Extricity 2425 North Central Expressw

RE: How to name STDIN from the command line

2003-01-23 Thread david
Michael Corgan wrote: > What I'm trying to write is a script to randomly write to standard output > questions in a file everytime I execute the script. I seem to be getting > these errors, though and I'm just not sure what I'm doing wrong. I'm not > sure what the errors are telling me. > have

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
Sweet! Thanks. I'll give her a try and study it to understand it better. Thanks! Dan > Dan Muey wrote: > > > > > #Q) Before I kill the head section or body tags below how do I grab > > these #parts of it? 1 - my $title = IE the text between title > > tags #2 - get body tag attributes m

RE: How to name STDIN from the command line

2003-01-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Michael Corgan wrote: > What I'm trying to write is a script to randomly write to standard > output questions in a file everytime I execute the script. I seem to > be getting these errors, though and I'm just not sure what I'm doing > wrong. I'm not sure what the errors are telling me. > >

Re: Install a Module ???

2003-01-23 Thread Jenda Krynicky
From: "Larry Sandwick" <[EMAIL PROTECTED]> > I am trying to install a Perl module on a Redhat 7.2 machine. Where do > I put the module before I perform the following: > > Perl Makefile.PL > Make > Make test > Make install > > I have uncompressed the

RE: Newb Help? Anyone?

2003-01-23 Thread Jenda Krynicky
From: "Dan Muey" <[EMAIL PROTECTED]> > > Where could I find a good reference wrt starting Perl? > > For a beginner I'd highly recommend the Peachpit Press Visual Quick > Start Guide to Perl By Elizabeth Castro ( I think ). > > It starts by not assuming you are already a 30 year unix veterin and

Re: Resolving IP's/Hostmasks

2003-01-23 Thread John W. Krahn
Dan wrote: > > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > > > > $ perl -le' > > use Socket; > > sub resolve { inet_ntoa( scalar gethostbyname( $_[0] ) ) } > > print resolve( "www.google.com" ); > > ' > > 216.239.51.101 > > $ perl -le' > > use Socket; > > sub resolve { inet_ntoa( scalar

RE: Tk with Perl

2003-01-23 Thread Perry, Alan
Tony Esposito wrote: > I am using ActiveState Perl 5.6.1. That does not seem too old to me. > Is there an ftp site where I can download Tk.pm? > Then I will install Tk using the Perl Package Mgr. There is actually no need for that, as long as you have Internet access. If you type (note the "ppm3

RE: Newb Help? Anyone?

2003-01-23 Thread Dan Muey
Yeah different strokes for different folks. As long as it' perl and not Microsoft I'm happy ;) > > From: "Dan Muey" <[EMAIL PROTECTED]> > > > Where could I find a good reference wrt starting Perl? > > > > For a beginner I'd highly recommend the Peachpit Press > Visual Quick > > Start Guide t

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
Very nice, although I'd like to keep html tags that are between the body tags as well except script & comment. Also @body contains the attributes of the body tag as well as all of the text in the body : my $new_title = join '', @title; my $new_body_atts = join(//,@body); print "TITLE -$new_ti

RE: Tk with Perl

2003-01-23 Thread Tony Esposito
Trying it now from the Command Prompt.seems to be just 'sitting' there. Anthony (Tony) Esposito Database Administrator Inovis(tm), formerly Harbinger and Extricity 2425 North Central Expressway Suite 900 Richardson, Texas 75080, USA Direct (972)643-3115 Fax (972)479-9779 -Original M

RE: How to use ATL COM components in perl

2003-01-23 Thread Toby Stuart
> -Original Message- > From: Nilesh [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 11:55 AM > To: [EMAIL PROTECTED] > Subject: Re: How to use ATL COM components in perl > > > > "Pankaj Kapare" <[EMAIL PROTECTED]> wrote in message > 005901c2bf02$59dada70$a300a8c0@anurag">

Re: Multiple use of same module question

2003-01-23 Thread Jenda Krynicky
From: "Dan Muey" <[EMAIL PROTECTED]> > Here's something I've been wondering > > What kind of performance issues are there if you do a 'use' on the > same module in the same script twice or more? Depends. This can be verry different for different modules. use Module; does two things:

RE: Multiple use of same module question

2003-01-23 Thread Dan Muey
Thanks I'll do that. > > From: "Dan Muey" <[EMAIL PROTECTED]> > > Here's something I've been wondering > > > > What kind of performance issues are there if you do a 'use' on the > > same module in the same script twice or more? > > Depends. > This can be verry different for different modul

Re: How to name STDIN from the command line

2003-01-23 Thread Rob Dixon
Michael Corgan wrote: > I used the ARGV earlier, but received errors. So this is how the > script looks now: > #! /usr/local/bin/perl -w > use strict; > # > # > # > > $/ = "\n%\n"; It looks like your file contains records separated by a % on its own on a line? There are much better ways of doing

Re: How to name STDIN from the command line

2003-01-23 Thread Rob Dixon
David wrote: > > push(my @buffer,<>); That's kinda fancy! Any reason it's not: my @buffer = <>; :-? Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Using HTML::Parser question

2003-01-23 Thread david
Dan Muey wrote: > > Very nice, although I'd like to keep html tags that are between the body > tags as well except script & comment. > > Also @body contains the attributes of the body tag as well as all of the > text in the body : > > my $new_title = join '', @title; > my $new_body_atts = join(

Re: How to name STDIN from the command line

2003-01-23 Thread david
Rob Dixon wrote: > That's kinda fancy! > > Any reason it's not: > > my @buffer = <>; > > :-? > no. i like yours. just somehow miss it. :-) david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
Almost perfect Instead of having an array of tags used in the body. I'd like to keep the tags in the body. IE print "title is: @title\n"; # perfect print "body text: @body\n"; # this needs to keep the tags were they are** print "body attr.:\n"; # perfect while(my($k,$v) = each %body_attr){

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
For clarity sake with all of the code and changes and stuff here is the code that works mostly the way I want with the 3 questions/problems/needs after the #'s, $text contains actual html code: #- # get $title - EG the 'Your Title Here' in :: Your Title Here # get $bdy_

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
Oops I just got your revised one. Sorry bout that! > > For clarity sake with all of the code and changes and stuff > here is the code that works mostly the way I want with the 3 > questions/problems/needs after the #'s, $text contains actual > html code: > #- > > # ge

RE: Using HTML::Parser question

2003-01-23 Thread Dan Muey
Those four points are exactly it btw. That script does 1,2, and 4, #3 is what it's not doing. Sorry about beinf so confusing with all of these posts! Hopefully this will clarify all of my babble. Thanks Dan > > Dan Muey wrote: > > > > > Very nice, although I'd like to keep html tags that ar

RE: Using HTML::Parser question

2003-01-23 Thread david
Dan Muey wrote: > > print "body text: @body\n"; # this needs to keep the tags were they are** > that' fairly easy to do: #!/usr/bin/perl -w use strict; use HTMP::Parser; my $text = < HI Title heaD STUFF keep the I tag hI HERE'S CONTENT i WANT IMaGE i DON'T WANT THIS SCRIPT EIT

Re: cgi and symbolic links

2003-01-23 Thread R. Joseph Newton
Harry Putnam wrote: > I wanted to use a single cgi script to generate several different > formated pages. Hi Harry, Given that this is CGI, which interacts with forms on a web page, I would suggest a different approach: # In the original calling page: # In the script to return a page: print W

Re: cgi and symbolic links

2003-01-23 Thread Harry Putnam
"R. Joseph Newton" <[EMAIL PROTECTED]> writes: > Harry Putnam wrote: > >> I wanted to use a single cgi script to generate several different >> formated pages. > > Hi Harry, > > Given that this is CGI, which interacts with forms on a web page, I > would suggest a different approach: > > # In the o

How to use com components in perl

2003-01-23 Thread Pankaj Kapare
Hi Can anybody tell me how to use com components developed in c++ in perl script.If provided with sample code it will be great help. thanks. Pankaj

  1   2   >