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]
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
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
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
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.
: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
[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
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
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
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
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
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
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
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
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
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
/$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
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
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.
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
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
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,
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
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
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
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';
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';
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,
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
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);
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);
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
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
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
--
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
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
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
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
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,
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 =
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
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
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
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
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
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
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
-
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
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
: 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
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
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
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
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
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
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
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!
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!
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
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
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,
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,
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]
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
64 matches
Mail list logo