delete pattern from text file

2003-03-17 Thread Hughes, Andrew
I am trying to use the following piece of code for subscribers to unsubscribe from my mailing list. The problem is that when the user clicks submit the file gets read into memory. If I open the file as open (DELETEFILE, . etc., the list gets overwritten entirely with nothing. It appears that

shared cookies

2003-03-17 Thread Hytham Shehab
hi guys, i have multiple domain names - etc multiple sites - that i would like to share cookies inbetween, how can i - literally - do that, and is it enough to use HTTP::Cookies !? thx 4 help -- Hytham Shehab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: arrays and subroutines

2003-03-17 Thread R. Joseph Newton
David Newman wrote: Greetings. I have a newbie question about passing arrays into a subroutine (and getting return values as well). Hi David, I can't help much as far as passing or returning whole arrays, but there is a much better way to access arrays from inside a function. I'll show you

Re: Capture wget progress bar

2003-03-17 Thread Ask Bjoern Hansen
[EMAIL PROTECTED] (Robert Rendler) writes: Currently I'm unable to capture wget's progress bar (the one with the arrow). It doesn't appear to be using STDOUT or STDERR. So this his not working: Why not just use LWP? Try running the following example I made for you. #!/usr/bin/perl -w use

Re: (Is this normal) www.techieindex.com

2003-03-17 Thread Ask Bjoern Hansen
[EMAIL PROTECTED] (Wiggins D'Anconia) writes: [techieindex] I am not sure this was a cross post? I think it is SPAM from the techieindex. I have gotten 2-3 as replies to messages posted on several different mailing lists. Yes, it was a spam mail. The moderator got fooled. :-) - ask

serialising a hash with Storable.pm

2003-03-17 Thread Yannick Warnier
Hi, I came to a little problem trying to thaw a hash with storable. In fact I'm somehow forced to use a hash that contains this serialised (freezed) hash, and then pass it to XML::Simple as to make an xml document with this. So, what I do is something like

Re: serialising... correction

2003-03-17 Thread Yannick Warnier
Nevermind for the errors quoted, this isn't related to serialisation. However, the problem is still there. Le lun 17/03/2003 à 10:23, Yannick Warnier a écrit : Hi, I came to a little problem trying to thaw a hash with storable. In fact I'm somehow forced to use a hash that contains this

Re: Problems with while loop and array

2003-03-17 Thread Scott R. Godin
Erwin Zavala wrote: I know I could use the filehandle but I am trying to understand why I cannot use the array and print each element at the time. #!/usr/bin/perl use warnings; #why was this left out? use strict; use Fcntl; $/ = \n\n; # I assume you know what you're doing here

How to map access MSMQ?

2003-03-17 Thread mustapic
Hi there, Is there a way to send and receive documents from MSMQ via Perl? Where would I go to get more information about this topic! Cheers, Ivica -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

text part of mail might be html / multipart

2003-03-17 Thread Ramprasad A Padmanabhan
hello all , I am writing a module that has to extract the text part of a mail, This mail may contain attachments but then I would ignore the attachments If it contained html I would require to strip html tags and covert to text I am presently doing this with MIME::Parser and html2text.pl but I

Re: Problems with while loop and array

2003-03-17 Thread Brett W. McCoy
Erwin Zavala wrote: I know I could use the filehandle but I am trying to understand why I cannot use the array and print each element at the time. #!/usr/bin/perl use strict; use Fcntl; $/ = \n\n; sysopen(readFile, cnnArticle.txt, O_RDONLY) || die $!; sysopen(writeFile, fortuneCookie.txt,

filehandle problem

2003-03-17 Thread rbraswell
How can I see what file handles are pointed at a given file. I am having a problem where I open, read, and close a certain file. Then another part of the script tries to open that same file, but can't. I suspect something is holding it open. Another file handle perhaps, but I have not been able to

Re: Fun with Regexes

2003-03-17 Thread Pete Emerson
Mar 16, 2003 at 5:08pm from Rob Dixon: RD (print 'abc') + ($success = 0) + (last); Rob, thanks, this example helps drive the point home. Would you also argue that open INFILE, $file || die Can't open $file: $!; should really be written as die Can't open $file: $! if (!open INFILE,

RE: filehandle problem

2003-03-17 Thread NYIMI Jose (BMB)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 5:04 PM To: [EMAIL PROTECTED] Subject: filehandle problem How can I see what file handles are pointed at a given file. I am having a problem where I open, read, and close a

Re: filehandle problem

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003 [EMAIL PROTECTED] wrote: How can I see what file handles are pointed at a given file. I am having a problem where I open, read, and close a certain file. Then another part of the script tries to open that same file, but can't. I suspect something is holding it open.

Re: filehandle problem

2003-03-17 Thread Aim
Hi, I think if you posted some of your code members will be able to help you. Without any code it will not be to easy. regards. aim. [EMAIL PROTECTED] wrote: How can I see what file handles are pointed at a given file. I am having a

Using format

2003-03-17 Thread Ruben Montes
Hi everybody, should I include any header or use a specific library to use the instruction format? I'm receiving the following error and i think it can be that... Format not terminated at 17032003.pl line 73, at end of line Missing right curly or square bracket at 17032003.pl line 73, at end

pb of listing and renaming files

2003-03-17 Thread r p
hi all i am a beginner and i need some help from you: here is my problem: -- i have to filter all files *.BMP and to rename all by *.bmp -- here is my script:

RE: pb of listing and renaming files

2003-03-17 Thread David Olbersen
Change your first line to #!/usr/bin/perl insetead of #!/usr/bin/perl (take out the leading space) That's causing your shell to think it's a bash script, instead of perl, hence the errors. -- David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA

Re: CONSTANTS in Perl

2003-03-17 Thread Jenda Krynicky
From: Tony Esposito [EMAIL PROTECTED] In C, you can define a constants - variables whose contents can not be changed. Is there any way to do this in Perl? There are some variables I use that I would love to set as a constant. In case you really wanted them to be variables you may do this:

RE: CONSTANTS in Perl

2003-03-17 Thread Tony Esposito
ThanksI got this issue resolved. One could also resolve the constant in a print statement like so: use constant MAX_THRESHOLD = 99; use constant MIN_THRESHOLD = 1; print STDERR ERROR 4: Command line arg threshold is out of range.\n; print STDERR ERROR 4: where threshold is between

Re: pb of listing and renaming files

2003-03-17 Thread Paul Johnson
=?iso-8859-1?q?r=20p?= said: hi all i am a beginner and i need some help from you: here is my problem: -- i have to filter all files *.BMP and to rename all by *.bmp -- here is my

RE: CONSTANTS in Perl

2003-03-17 Thread Jenda Krynicky
From: Tony Esposito [EMAIL PROTECTED] ThanksI got this issue resolved. One could also resolve the constant in a print statement like so: ... print STDERR ERROR 4: where threshold is between @{[ MIN_THRESHOLD ]} and @{[ MAX_THRESHOLD ]}.\n; Yep. It's a shame that the Perl optimizer is

RE: Using format

2003-03-17 Thread Hanson, Rob
I haven't used formats in a long time, but no, you don't need any additional libraries. Parhaps you forgot to end the format section? It needs to end with a period (.). Perhaps posting a code sample to the list would help. Rob -Original Message- From: Ruben Montes [mailto:[EMAIL

using format

2003-03-17 Thread Ruben Montes
hello, here's the code: format ENT_TOP = Num. Interface Description Admin StatusOper Status == . and this is error I get: Format not terminated at 17032003.pl line 77, at end of line

RE: using format

2003-03-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Ruben Montes wrote: hello, here's the code: format ENT_TOP = Num. Interface Description Admin StatusOper Status == . and this is error I get: Format not terminated at

indexing books with Perl

2003-03-17 Thread Matthew Stapleton
Hello folks, I am new to this list and perl. I am wanting to find or perhaps write a script which will index religious works such as the apocrypha or the dhammapada. These texts usually take the form of: Book Chapter:Verse Passage Does anyone know of such a script? And, if there is not

Re: Fun with Regexes

2003-03-17 Thread R. Joseph Newton
Pete Emerson wrote: Mar 16, 2003 at 5:08pm from Rob Dixon: RD (print 'abc') + ($success = 0) + (last); Rob, thanks, this example helps drive the point home. Would you also argue that open INFILE, $file || die Can't open $file: $!; should really be written as die Can't open

Re: Fun with Regexes

2003-03-17 Thread Scott R. Godin
Pete Emerson wrote: Mar 16, 2003 at 5:08pm from Rob Dixon: RD (print 'abc') + ($success = 0) + (last); Rob, thanks, this example helps drive the point home. Would you also argue that open INFILE, $file || die Can't open $file: $!; should really be written as die Can't

Re: Punishing Your Server With Perl

2003-03-17 Thread AK
On Thu, 13 Mar 2003 14:10:36 +0800 (GMT-8), [EMAIL PROTECTED] wrote: A couple of years ago there was a great article by the title of Punishing Your Server With Perl. (I believe that either Randal Schwartz or Ruben The article can be found at:

Free cgi-bin?

2003-03-17 Thread Liebert, Sander
Does anyone know of a free cgi-bin. I am having some problems with a script and wanted to narrow it down to rule out email. I don't need a free website, just a place that can run and execute my script. I have searched on google, but I'm only coming up with free web hosts. -- To

Re: Free cgi-bin?

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Liebert, Sander wrote: Does anyone know of a free cgi-bin. I am having some problems with a script and wanted to narrow it down to rule out email. I don't need a free website, just a place that can run and execute my script. I have searched on google, but I'm only

Re: pb of listing and renaming files

2003-03-17 Thread John W. Krahn
R p wrote: hi all Hello, i am a beginner and i need some help from you: here is my problem: -- i have to filter all files *.BMP and to rename all by *.bmp -- here is my script:

help with whois code

2003-03-17 Thread Thomas Browner
Could some one help me with this code. Every time that I this code: use Net::Whois; use Carp; $dom =digidyne.com; my $w = new Net::Whois::Domain $dom or die Can't connect to Whois server\n; unless ($w-ok) { croak No match for $dom;} print Domain: , $w-domain, \n; print Name: ,

RE: Punishing Your Server With Perl

2003-03-17 Thread Tony Esposito
See CPAN www.cpan.org for a Win32 Perl port. -Original Message- From: AK [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 11:04 AM To: [EMAIL PROTECTED] Subject: Re: Punishing Your Server With Perl On Thu, 13 Mar 2003 14:10:36 +0800 (GMT-8), [EMAIL PROTECTED] wrote: A couple of

Re: Fun with Regexes

2003-03-17 Thread John W. Krahn
Pete Emerson wrote: Mar 16, 2003 at 5:08pm from Rob Dixon: RD (print 'abc') + ($success = 0) + (last); Rob, thanks, this example helps drive the point home. Would you also argue that open INFILE, $file || die Can't open $file: $!; should really be written as die Can't

Re: Free cgi-bin?

2003-03-17 Thread Rus Foster
On Mon, 17 Mar 2003, Liebert, Sander wrote: Does anyone know of a free cgi-bin. I am having some problems with a script and wanted to narrow it down to rule out email. I don't need a free website, just a place that can run and execute my script. I have searched on google, but I'm only

Re: help with whois code

2003-03-17 Thread John W. Krahn
Thomas Browner wrote: Could some one help me with this code. Every time that I this code: use Net::Whois; use Carp; $dom =digidyne.com; my $w = new Net::Whois::Domain $dom or die Can't connect to Whois server\n; ^ ^ Missing at end of string! I get the following

Re: help with whois code

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Thomas Browner wrote: Could some one help me with this code. Every time that I this code: use Net::Whois; use Carp; $dom =digidyne.com; my $w = new Net::Whois::Domain $dom or die Can't connect to Whois server\n; ^^^ Need a closing here -- Brett

RE: help with whois code

2003-03-17 Thread Tony Esposito
BTW - Anyone know where to get the Carp module for Perl 5.6.1 on Win32 ( WindowsNT ) and how to install it? I am using the OpenPerl IDE and it complains about not being able to locate Carp. I checked and it is not on my Win32 system. Thanks! -Original Message- From: Brett W. McCoy

RE: help with whois code

2003-03-17 Thread Tony Esposito
Addendum: I tried CPAN and my search(es) do not show the module itself. Thanks! Anthony (Tony) Esposito Senior Technical Consultant Inovis(tm), formerly Harbinger and Extricity 2425 N. Central Expressway, Suite 900 Richardson, TX 75080 (972) 643-3115 [EMAIL PROTECTED]

RE: help with whois code

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Tony Esposito wrote: BTW - Anyone know where to get the Carp module for Perl 5.6.1 on Win32 ( WindowsNT ) and how to install it? I am using the OpenPerl IDE and it complains about not being able to locate Carp. I checked and it is not on my Win32 system. Did you try

RE: help with whois code

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Tony Esposito wrote: Addendum: I tried CPAN and my search(es) do not show the module itself. Thanks! It's right there under the Core Modules listing: http://www.cpan.org/modules/by-category/02_Perl_Core_Modules -- Brett

internal server error

2003-03-17 Thread Robbie Staufer
Hi, I have a partial perl script for a mock-up web page, that will collect information from users as part of a registration form. In trying to see what it looks like so far on the web, I'm getting an internal server error. I thought that the script, though partial, was at least closed out

javascript and perl dbi

2003-03-17 Thread Robbie Staufer
Hi, I have a web page where I've used Java Script to set up some relational menus, within a php script to send form data to a perl DBI script for querying a database. The user selects an option from the first menu, and an option from the second menu, and these values need to be passed either

Re: internal server error

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Robbie Staufer wrote: I have a partial perl script for a mock-up web page, that will collect information from users as part of a registration form. In trying to see what it looks like so far on the web, I'm getting an internal server error. I thought that the script,

Re: internal server error

2003-03-17 Thread Rob Dixon
Robbie Staufer wrote: Hi, I have a partial perl script for a mock-up web page, that will collect information from users as part of a registration form. In trying to see what it looks like so far on the web, I'm getting an internal server error. I thought that the script, though partial,

RE: help with whois code

2003-03-17 Thread Tony Esposito
I am using SiePerl. I had trouble installing ActiveState on WindowsNT for some reason ( probably OE but I did not want to mess with it ) even though it installed fine on Windows2000. The OpenPerl IDE fails to even open up with the WindowsNT version of ActiveState so I used SiePerl. With

RE: help with whois code

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Tony Esposito wrote: I am using SiePerl. I had trouble installing ActiveState on WindowsNT for some reason ( probably OE but I did not want to mess with it ) even though it installed fine on Windows2000. The OpenPerl IDE fails to even open up with the WindowsNT version

RE: help with whois code

2003-03-17 Thread Tony Esposito
I checked my whole system for Carp.pm and it was nowhere to be found. Perl seems to work fine from the command line. It is the OpenPerl IDE that seems to need it ( for stack tracing I am guessing ). In fact, the OpenPerl IDE in debug mode stops right at the line in the demo script that says use

Help with script , error 500

2003-03-17 Thread Ramón Chávez
Hello everyone. I have a problem that has me blinded. I'm working on a script for finding the 3 greatest numbers on a group of data stored in a TXT file. I keep getting the same 500 error. I used some pieces of code from others scripts I made that work correctly, but this is my headache. Maybe

RE: help with whois code

2003-03-17 Thread Brett W. McCoy
On Mon, 17 Mar 2003, Tony Esposito wrote: I checked my whole system for Carp.pm and it was nowhere to be found. Perl seems to work fine from the command line. It is the OpenPerl IDE that seems to need it ( for stack tracing I am guessing ). In fact, the OpenPerl IDE in debug mode stops

RE: help with whois code

2003-03-17 Thread David Olbersen
Quoting issues, I think you meant: perl -MCarp -e croak('croaked') -- David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA 92127 1-858-676-2277 x2152 -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: help with whois code

2003-03-17 Thread Tony Esposito
I'll try itthe SiePerl instance is at home, not at work - where I am at now! Thanks! :-) -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 5:14 PM To: Tony Esposito Cc: Thomas Browner; [EMAIL PROTECTED] Subject: RE: help with whois code

Re: help with whois code

2003-03-17 Thread Brett W. McCoy
David Olbersen wrote: Quoting issues, I think you meant: perl -MCarp -e croak('croaked') Yeah... forgot it's Win32 command-line... :-) -- Brett http://www.chapelperilous.net/

Re: Help with script , error 500

2003-03-17 Thread R. Joseph Newton
Ramón Chávez wrote: Hello everyone. Hi Ramon, I think I see your problem right here: print content-type: text/html \n\n; Should be: print Content-type: text/html\n\n; I can't say that that is the only problem, but that probably would be enough to hang the process. Try changing that,

CGI and Exchange 2000

2003-03-17 Thread Liebert, Sander
I know this is slightly off topic, but I have yet to find someone that can answer this. I have a new Exchange 2000 server, since it was installed, the cgi scripts on my ISP's server will not send mail from my scripts anymore. Relaying is disabled in Exchange 2000 and I have read that in order for

Re: indexing books with Perl

2003-03-17 Thread Wiggins d'Anconia
Matthew Stapleton wrote: Hello folks, I am new to this list and perl. I am wanting to find or perhaps write a script which will index religious works such as the apocrypha or the dhammapada. These texts usually take the form of: Book Chapter:Verse Passage Does anyone know of such a script? And,

Re: internal server error

2003-03-17 Thread R. Joseph Newton
Rob Dixon wrote: Robbie Staufer wrote: Hi, I have a partial perl script for a mock-up web page, that will collect information from users as part of a registration form. In trying to see what it looks like so far on the web, I'm getting an internal server error. I thought that the

Re: javascript and perl dbi

2003-03-17 Thread R. Joseph Newton
Robbie Staufer wrote: Hi, I have a web page where I've used Java Script to set up some relational menus, within a php script to send form data to a perl DBI script for querying a database. The user selects an option from the first menu, and an option from the second menu, and these values