What's a -|?

2003-02-13 Thread Troy May
I have this line in one of my scripts: if ( $pid = open( SWISH, '-|' ) ) Why am I opening -|? And what is it? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Removing duplicates from an array

2003-02-09 Thread Troy May
Hello, What's the best and cleanest way to remove duplicates from an array? I have an array that reads entries from a text file and I would like to remove all the duplicates from it. Thanks in advance! Troy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RSS feed without a Mod

2002-10-24 Thread Troy May
I was wondering if anybody knew of a complete script that can convert RSS feeds to HTML without the normal needed mod (XML::RSS?), to be used as an SSI on my page. My ISP will not install this mod for me. So I need one script that does it all with just an external URL for the input source. Any

RE: WHO IS NAVER-MAILER@naver.com ???

2002-10-03 Thread Troy May
I never get them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 10:38 PM To: Beginners Perl Mailing List Subject: WHO IS [EMAIL PROTECTED] ??? Hello, All: Every time I send a message to this list, I receive a message from

OT? - Webmaster List

2002-09-17 Thread Troy May
Hello, I can't believe how much I'm learning about Perl from this list! I was wondering if anybody knew of a general Webmaster list like this? I would like to be apart of that also and receieve emails from both. The only thing I'm finding is weekly newsletters, not email lists like this one.

RE: OT? - Webmaster List

2002-09-17 Thread Troy May
:00 AM To: Troy May Cc: Perl Beginners Subject: Re: OT? - Webmaster List Webmaster for what? Apache webserver? Running on Linux? If that's the case, you may want to join the list for your particular flavour of Linux, and the apache administrators list. Just FYI, if you're interested in learning

RE: OT? - Webmaster List

2002-09-17 Thread Troy May
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: RE: OT? - Webmaster List Troy May wrote: Thanks for responding. Actually, I just wanted one in general. It doesn't matter what it's about. I'm learning everything. since this list is about Perl

Redirecting STDOUT

2002-09-05 Thread Troy May
I'm writing a script that is currently interactive ( once I'm done debugging it will be non-interactive) in that I have to tell it to keep processing data after the end of every pass. I'm looking for a way to display the script's output on my screen, but also to log it to a file if possible. I

RE: Redirecting STDOUT

2002-09-05 Thread Troy May
I think I found it! Read this: |tee - Tee allows for the stdout to be sent to both the screen and to a file command |tee outfile Does this make sense? -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 7:06 PM To: Troy May Cc

RE: [OT] Apologize to Kevin Meltzer

2002-08-17 Thread Troy May
I've learned something from this too, so thank you to you both. I use to cross post all the time when I first started on these lists. I was never flat out told not to like in this case. Eventually, I did stop though. :) Troy -Original Message- From: Connie Chan [mailto:[EMAIL

BEGIN statement in Perl?

2002-08-15 Thread Troy May
Hello, I just read this in a forum and I have never heard of this before. He was having problems with a variable not holding it's value when calling it from a sub. He wrote back and said that this is what fixed it. Can anybody explain this to me? Here's part of his post: - What

RE: REMOVE ME from your mailing list!

2002-08-13 Thread Troy May
LOL This cracked me up! :) -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:51 PM To: perl beginners cgi Cc: Buskirk, Richard Mr USAREC Subject: Re: REMOVE ME from your mailing list! Mr. Buskirk -- and then Buskirk, Richard Mr

RE: Post to a second CGI script

2002-07-29 Thread Troy May
Use cookies. -Original Message- From: Jim Lundeen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 5:06 PM To: begin begin Subject: Post to a second CGI script Hello All, I have 2 scripts. One accepts 3 values LOGIN_USERNAME, LOGIN_PASSWORD and ACTION from an HTML form. That

Random images on a bulletin board

2002-07-01 Thread Troy May
Hello, I'm trying to make a random signature for use on bulletin boards. Images are fine, they are set sizes. But I'm trying to make it display Flash files also. These Flash files default to full-screen when there are no size limits set. I can't figure out how to adjust this script to

Random images on bulletin boards

2002-07-01 Thread Troy May
Hello, I'm trying to make a random signature for use on bulletin boards. Images are fine, they are set sizes. But I'm trying to make it display Flash files also. These Flash files default to full-screen when there are no size limits set. I can't figure out how to adjust this script to

RE: logon on startup

2002-06-26 Thread Troy May
http://apache-server.com/tutorials/ATusing-htaccess.html -Original Message- From: Martin Pestun [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 5:46 AM To: [EMAIL PROTECTED] Subject: logon on startup Hi I've got cgi scripts running on the local Apache. When somebody wants

RE: Searching for a specific spot on a page

2002-06-13 Thread Troy May
/$SEARCH $HTML/; open(OUT,$file) || die $!; print OUT $filestr; close OUT; Troy May wrote: Hello, I'm trying to do a news feed type of script from an admin page. I need to open up a page and find the line that starts with !--news feed-- and insert $html right after that. I'm drawing a blank

RE: Searching for a specific spot on a page

2002-06-13 Thread Troy May
Thank you Shawn! That worked too! You guys are great! :) Troy -Original Message- From: Shawn [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 9:19 PM To: Troy May; [EMAIL PROTECTED] Subject: Re: Searching for a specific spot on a page my $string=someHTML; my @split=split

Searching for a specific spot on a page

2002-06-12 Thread Troy May
Hello, I'm trying to do a news feed type of script from an admin page. I need to open up a page and find the line that starts with !--news feed-- and insert $html right after that. I'm drawing a blank on how to search for that line. This is probably easy, but I can't think of how to do it.

Search engines and SSI

2002-05-24 Thread Troy May
Hello, Do search engines see/read the HTML that you include through an SSI? Or will they ignore it? For example, I include a header page for all my pages so I only have to update one page instead of 23. Will the search engines pick up my META tags that are in this header file? -- To

Cron alternatives?

2002-05-21 Thread Troy May
Hello, A friend of mine has a task he wants to do daily, so I told him to check into cron but he said he doesn't have it. His server is running RedHat 6.1 Cartman. I've never used cron before but I'm assuming that it is not available to him from what he said. Is there an alternative to cron

RE: Perl Bulletin Boards

2002-05-21 Thread Troy May
ikonboard -Original Message- From: Michael Norris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 4:50 AM To: [EMAIL PROTECTED] Subject: Perl Bulletin Boards VBulletin seems to be a favorite bulletin board among PHP folks. Are there any good perl alternatives out there. Well,

From field in a Sendmail Sub

2002-05-16 Thread Troy May
Is this field for email addresses only? I can't get it to say my name. Here's what I have: print MAIL From: Troy\n; print MAIL From: Troy May\n; Neither work. They come through as my server email address. Can this be done? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

From field in a Sendmail Sub

2002-05-16 Thread Troy May
Is this field for email addresses only? I can't get it to say my name. Here's what I have: print MAIL From: Troy\n; print MAIL From: Troy May\n; Neither work. They come through as my server email address. Can this be done? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: From field in a Sendmail Sub

2002-05-16 Thread Troy May
Yep! This worked: print MAIL From: Troy May tmay\@gbis.com\n; Thanks Chris. -Original Message- From: Chris Zubrzycki [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 6:08 PM To: Troy May Cc: Perl Beginners Subject: Re: From field in a Sendmail Sub -BEGIN PGP SIGNED

Multiple emails with Sendmail

2002-05-11 Thread Troy May
Hello, I'm trying to figure out how to send emails through Sendmail with an email list that could change at any given time. I'm trying it with a text file now: (file is in this format: email, email, email, email) - $mailprog = '/usr/sbin/sendmail';

Multiple emails with Sendmail

2002-05-11 Thread Troy May
Hello, I'm trying to figure out how to send emails through Sendmail with an email list that could change at any given time. I'm trying it with a text file now: (file is in this format: email, email, email, email) - $mailprog = '/usr/sbin/sendmail';

Question about this list

2002-04-15 Thread Troy May
Is there a way that I can have access to this list without receiving 150 emails a day? In other words, if I un-subscribe, does that mean that I can't use it anymore? Or does it just mean that I won't receive all these emails but will still be able to post a question? -- To unsubscribe,

RE: Question about this list

2002-04-15 Thread Troy May
Ennis'; 'Troy May' Cc: Perl Beginners Subject: RE: Question about this list um... have you tried filtering by [EMAIL PROTECTED] in the header? it's always there, and there is an option in Outlook for it in the rules wizard. -Original Message- From: Timothy Johnson [mailto:[EMAIL

Yesterday's date

2002-04-07 Thread Troy May
What's the easiest way to get yesterday's date from localtime? I need it in this format: (for today) 070402. Here is the code used for today's date: ($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = localtime(); $mon++; $year %= 100; $theDate = sprintf(%02u%02u%02u, $mday, $mon, $year);

Yesterday's date

2002-04-07 Thread Troy May
What's the easiest way to get yesterday's date from localtime? I need it in this format: (for today) 070402. Here is the code used for today's date: ($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = localtime(); $mon++; $year %= 100; $theDate = sprintf(%02u%02u%02u, $mday, $mon, $year);

Re-displaying data back into forms

2002-03-16 Thread Troy May
Ok, we got the first problem I had figured out. (thanks everybody) But I'm still having problems with textarea box. It only displays the first line (until you hit the enter button). Here's the format of the data that I need to put back into the textarea box: -- Test Test Test

Re-displaying data back into forms

2002-03-16 Thread Troy May
Ok, we got the first problem I had figured out. (thanks everybody) But I'm still having problems with textarea box. It only displays the first line (until you hit the enter button). Here's the format of the data that I need to put back into the textarea box: -- Test Test Test

Re-displaying data back into forms

2002-03-14 Thread Troy May
Hello, This may be hard to explain, but I have a form consisting of 3 one-line text boxes, and 1 multi-line textarea box. When I load the page each and every time, I want the PREVIOUS data to be displayed in the text boxes. Similiar to web forums when you click to EDIT your own post and it

RE: Re-displaying data back into forms

2002-03-14 Thread Troy May
-- It only displays the first paragraph. -Original Message- From: Kris Findlay [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 9:11 PM To: 'Troy May' Cc: Beginners-Cgi Subject: RE: Re-displaying data back into forms I had same problem with a preview post form I created

Re-displaying data back into forms

2002-03-14 Thread Troy May
Hello, This may be hard to explain, but I have a form consisting of 3 one-line text boxes, and 1 multi-line textarea box. When I load the page each and every time, I want the PREVIOUS data to be displayed in the text boxes. Similiar to web forums when you click to EDIT your own post and it

CGI with a form

2002-03-09 Thread Troy May
Hello, How do I link to a certain part of a CGI program with a form? I was thinking that I have to link to a sub-routine, but I can't get it working. Here's the form tag I'm trying: FORM name=form action=$cgi?get_results method=post align=center $cgi being the program itself of course and

CGI with a form

2002-03-09 Thread Troy May
Hello, How do I link to a certain part of a CGI program with a form? I was thinking that I have to link to a sub-routine, but I can't get it working. Here's the form tag I'm trying: FORM name=form action=$cgi?get_results method=post align=center $cgi being the program itself of course and

Writing to beginning of file

2002-03-09 Thread Troy May
Hello, How do you write to the beginning of a file? I see only 3 options to open a file: to read, to overwrite, and to append to the end of the file. I tried seeking to the beginning before the write, but it doesn't work. Seek must only work for a read. Any ideas? -- To unsubscribe,

Date format again

2002-03-03 Thread Troy May
Hello, this guy finally emailed his script to me. The problem he is having is with $year. Here's the dating part of the code: --- $date = `/bin/date`; chop($date); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; $thisday =

Time and date formats

2002-03-01 Thread Troy May
What do the letters after the %02 mean? I know about %02d, but I came across a few scripts with %02u in it. I've never seen that, what does it mean? What's the difference between the d and the u? And what ELSE can you possibly use there? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Perl/CGI - Oracle DB

2002-02-25 Thread Troy May
Hi everybody, I'm trying to help this guy out but know NOTHING about Oracle DB or how they work. Here is his message: Hi, I think I need to explain to you my problem in detail. WebServer: Apache 1.3.22 WTC ProductCenter Server 7.5 (www.workgroup.com) Using PERL-CGI From the web page there is

Renaming files with Perl

2002-02-08 Thread Troy May
Hello, I posted a question about this a couple days ago and only got 2 responses, but neither of them worked for him. So I figured I'd start new since he told me the EXACT format he would like the files to be in. My friend wants to rename a dat file as he calls it. (message.dat?) He would

Renaming files with Perl

2002-02-08 Thread Troy May
Hello, I posted a question about this a couple days ago and only got 2 responses, but neither of them worked for him. So I figured I'd start new since he told me the EXACT format he would like the files to be in. My friend wants to rename a dat file as he calls it. (message.dat?) He would

Renaming files on the server

2002-02-07 Thread Troy May
Hello all, My friend (who doesn't English too well yet) has been emailing me asking about a guestbook he made. It sounds like he wants to archive his message files with a certain format and back them up automatically everyday. Here's his last email to me: i want to store all those message

Renaming files on the server

2002-02-07 Thread Troy May
Hello all, My friend (who doesn't English too well yet) has been emailing me asking about a guestbook he made. It sounds like he wants to archive his message files with a certain format and back them up automatically everyday. Here's his last email to me: i want to store all those message

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
input type=image src=submit.gif alt=Submit Form Then just make a submit.gif for what you want to use as the submit image. -Original Message- From: Patrick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 5:47 PM To: [EMAIL PROTECTED] Subject: CGI Form Submit Buttons Is

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
- From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:17 PM To: Troy May; Patrick; [EMAIL PROTECTED] Subject: Re: CGI Form Submit Buttons input type=image src=submit.gif alt=Submit Form I personaly have had trouble with this. what exactly tells

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
a form.submit? Or should the type be submit? -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:15 PM To: Patrick; [EMAIL PROTECTED] Subject: RE: CGI Form Submit Buttons input type=image src=submit.gif alt=Submit Form Then just make a submit.gif

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:39 PM To: Troy May; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: CGI Form Submit Buttons But what about cases of having two image buttons? Does the one that is clicked default as submit or does this require

RE: LISTBOX Problem

2002-02-06 Thread Troy May
The first line of here-docs should end with a semi-colon: print END; blah, blah, blah END Try that. -Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:28 AM To: [EMAIL PROTECTED] Subject: LISTBOX Problem I am trying to populate a list box

RE: Is there a good CGI.pm tutorial online?

2002-02-03 Thread Troy May
Read through here: http://www.perldoc.com/cpan/CGI.html -Original Message- From: Steven Rubin [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: Is there a good CGI.pm tutorial online? Is there a good CGI.pm tutorial online? I am

Search Script Help

2002-01-23 Thread Troy May
Hello, I downloaded a search script that is perfect for what I'm looking for, but there's one problem that I can't figure out. In it, there's a variable for what files and/or directories that you do NOT want searched ($DMZ). I can't find the correct format to put in here and the script's tech

Search Script Help

2002-01-23 Thread Troy May
Hello, I downloaded a search script that is perfect for what I'm looking for, but there's one problem that I can't figure out. In it, there's a variable for what files and/or directories that you do NOT want searched ($DMZ). I can't find the correct format to put in here and the script's tech

Using SSI in a CGI program

2002-01-21 Thread Troy May
Hello, I have an HTML template which gets inserted into a CGI program. I need to insert an SSI into it, but when the page is created it will not show up like it does with a standard HTML file. Do I need to do anything different to this to execute it correctly so it will work like a standard

CHMODing .pm files

2002-01-20 Thread Troy May
What do you properly CHMOD these files at? The reason that I'm asking is because if people know the exact filename and type it into the browser, it will either display the source code or prompt for a download. Is there a way to stop this? Also, what does the cgi-bin directory itself get

Substitution formats

2002-01-19 Thread Troy May
Hello, I only knew of one way to do them: s/// But japhy once answered me with this format: s{}{} Another guy said you can use exclamation points? I'm assuming: s!!! I've tried some other formats with brackets, parenthesis, etc. Nothing else works. What other formats will work? Thanks!

Substitution formats

2002-01-19 Thread Troy May
Hello, I only knew of one way to do them: s/// But japhy once answered me with this format: s{}{} Another guy said you can use exclamation points? I'm assuming: s!!! I've tried some other formats with brackets, parenthesis, etc. Nothing else works. What other formats will work? Thanks!

Regex problem?

2002-01-13 Thread Troy May
Hello, I'm having a problem with a bulletin board I'm setting up. All the smilies work except for one, the wink one. which be called when you type in ;). It won't display the graphic. All the others are fine so I know's it not a config or directory problem. Here's the regex that looks for

Refreshing a Guest Book type page

2002-01-03 Thread Troy May
Hello, I don't have a working example, this is for a friend. He says he has a guest book set up on his site. All is fine with it. People submit their entry, it takes you to a view page (dynamic, from the Perl program) where it shows you all the entries. But he says when people refresh that

Using the require command with perl

2001-10-28 Thread Troy May
Hi, I'm trying to use the require command with perl but when i want to put a variable within the require statement it always errors out. The code looks something like this. require /absolute/path/to/files/$FORM{'id'}/options.txt; Is this not possible? thanx for the help. -- To unsubscribe,

Using the require command with perl

2001-10-27 Thread Troy May
Hi, I'm trying to use the require command with perl but when i want to put a variable within the require statement it always errors out. The code looks something like this. require /absolute/path/to/files/$FORM{'id'}/options.txt; Is this not possible? thanx for the help. -- To unsubscribe,

New user here

2001-10-17 Thread Troy May
Hello, Is everybody seeing this? When/if I answer somebody, do I hit reply or reply to all? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: New user here

2001-10-17 Thread Troy May
Ok, thanks! -Original Message- From: nafiseh saberi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 17, 2001 10:20 PM To: Troy May; [EMAIL PROTECTED] Subject: Re: New user here reply all. __ Best regards . Nafiseh Saberi Iran