Re: Multiple use of same module question
Timothy Johnson wrote: > I agree, but I'm not quite to the point where I can go back and fix it > myself. Yes, you can. That's why Perl modules are open source. If you want to be less radical, open the pm, find at least one constant it defines, and surround your use statements with similar, bu
Re: cgi and symbolic links
Harry Putnam wrote: > Boy, that sailed right over my head... I guess I'd need a little more > filling on both sides of that input to understand it. Hi Harry, The point is that CGI is mostly a process of getting the name and value attributes of form input tags into your programs data hash as nam
Re: Only numbers
dan wrote: > I want to be able to check if a string contains only a number, no letters, > etc. I have this procedure: Try; if (!($numess =~ /\D/)) { which will reject anything containing a non-digit. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Probably a simple hash question
"Lara J. Fabans" wrote: > Hi, perl-friends,... Hi Lara, You said: > I had a while loop to search through each of the keys & values, but the problem is > that it doesn't break out of the while loop, and the wrong value gets set as $myID; Look at your words, thenlook at your code: > #while(my (
Re: "1;"?
Rob Richardson wrote: > 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? It's pretty much a standard for modules, but not strictly necessary. For i
RE: Multiple use of same module question
I agree, but I'm not quite to the point where I can go back and fix it myself. -Original Message- From: R. Joseph Newton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:53 PM To: Timothy Johnson Cc: 'Dan Muey'; Rob Dixon; [EMAIL PROTECTED] Subject: Re: Multiple use of same m
Re: Multiple use of same module question
> 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. I*t sems to me that this is sort of a shortcoming, if you have to worry about that
Re: Regex needed.
On Wed, 22 Jan 2003, Rob Dixon wrote: > 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 o
How to use com components in perl
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
Re: cgi and symbolic links
"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
Re: cgi and symbolic links
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: Using HTML::Parser question
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: Using HTML::Parser question
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
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
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
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: How to name STDIN from the command line
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
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
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: How to name STDIN from the command line
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: Multiple use of same module question
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: Multiple use of same module question
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: How to use ATL COM components in perl
> -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: Tk with Perl
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: Using HTML::Parser question
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: Newb Help? Anyone?
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: Tk with Perl
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: Resolving IP's/Hostmasks
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: Newb Help? Anyone?
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: Install a Module ???
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: How to name STDIN from the command line
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: Using HTML::Parser question
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
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: Tk with Perl
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: my struggle to work with structures... pls hlp!
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
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: How to name STDIN from the command line
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: Using HTML::Parser question
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: Only numbers
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: Install a Module ???
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: Tk with Perl
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: Tk with Perl
>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: Using HTML::Parser question
> 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
Tk with Perl
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: Only numbers
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
Re: Only numbers
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
> 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
Install a Module ???
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
Only numbers
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
Using HTML::Parser question
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
RE: How to name STDIN from the command line
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
RE: How to name STDIN from the command line
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
my struggle to work with structures... pls hlp!
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
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)
How to name STDIN from the command line
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: Resolving IP's/Hostmasks
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"
Re: Rather complex regular expression for the preg_match_all function
Andreas Sheriff wrote: > > I don't want to find tags with a complete structure. > ex: This is atag 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: Quick regex prob
> /^\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: Quick regex prob
/^\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: Removing HTML Tags
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
> 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: Quick regex prob
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: Probably a simple hash question
> 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: "1;"?
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
Quick regex prob
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: cgi and symbolic links
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
RE: How do I test a variable to see if it is a scalar or a hash?
> > 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
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: Probably a simple hash question
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: How do I test a variable to see if it is a scalar or a hash?
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
> 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
Probably a simple hash question
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
How do I test a variable to see if it is a scalar or a hash?
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
RE: Multiple use of same module question
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
RE: Multiple use of same module question
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
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: "1;"?
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: Resolving IP's/Hostmasks
"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
"1;"?
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: cgi and symbolic links
> 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
Multiple use of same module question
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
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
RE: cgi and symbolic links
> 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
cgi and symbolic links
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: free web hosting with full CGI service?
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
RE: Newb Help? Anyone?
> > 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: cgi script invoking an exe
"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: use and require
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: How bad is it to use global variables?
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: How bad is it to use global variables?
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?
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?
> > 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: looking for a string in multiple files
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
How bad is it to use global variables?
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: A better way, a perl way?
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:
Re: Find same key in 2 hashes?
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
Weekly list FAQ posting
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: looking for a string in multiple files
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
Newb Help? Anyone?
Where could I find a good reference wrt starting Perl? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: project
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