Sorry about that!
I was looking in the wrong place for the info, found it just after I posted
the question,
many thanks anyway,
Chris.
_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/c
I have written a basic search engine, but can not find how to match the
users input regardless of case.
#$keyword comes from html form input
while ()
{
if (/$keyword/)
{
#do some things here
}
}
Any help is always appreciated,
many thanks,
Chris.
Hello everyone,
I have a bunch of folders that I would like to search through for a
particular string. Any hints on how to do this? I do not know the names of
all the files, but would like to be able to return the name.
Basically this is so I can search a bunch of files for a word, and be ab
Hi everyon, thanks for your help so far
I am trying to substitute a path for another path.
I have html documents which refer to some images in the following directory:
C:\Documents and Settings\chrisz\Desktop\Web_notes\PFLogo.gif
I would like to change this so it reads:
.../PFLogo.gif
I hav
Hi everyone,
Is there a way to open a file in a folder/s above/below the one the
script is in? (OS is win2k),
Thanks,
Chris.
_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=featur
and did
not accept html content - silly me!!),
If you think that I can be any help, just let me know,
Chris Zampese.
[EMAIL PROTECTED]
- Original Message -
From: "Johannes Franken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 20
you're right. it does sound bad. someone call spam cop :-)
-- Honestly, no spam. Just want to automate the office a bit. Changed a
form that they usually send by paper (fax or snail mail) to an email form.
-Original Message-
From: Chris Zampese [mailto:[EMAIL PROTECTED]]
Sen
This question probably belongs in the cgi list, but here goes...
I know that this is going to sound bad, but I want to send an html document via
email to people that have blocked html (I am doing a form for an insurance broker, and
it goes to the insurance companies that they deal with. The
Hi All,
I have a file that contains the contents of an email. Its format is shown below...
(Lots of lines of random stuff)
Content-Transfer-Encoding: quoted-printable
The message of the email is here then it is followed by
--=_NextPart_000_0118_01C1B358.DE107900
(lots more lines of stuff
I found my problem, I was using a _ between my $variables to create a
string, changed them to commas and everything is great!
> - Original Message -
> From: "Chris Zampese" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 11, 2
can anyone tell me who my subject line is not appearing when I use the following code,
everything else works except that!
I am on a Win98 system and all $variables are gathered from a form, as I said, all
the other details appear except the subject.
#!C:\Perl\bin\perl.exe -w
#By Chris
Hi all, me again!
I have a variable (mymessage) that contains alot of text, plus some $scalar
variables...
A bit like this.
my $mymessage= 'blah blah blah $myblah with a bit of $moreblah' ;
then I would like to process this so I can use it as the body of an email.
Like this.
$mymessage =~ s
I have read through all of the messages on this subject, very interesting.
I am new to perl and at the University that I went to they used C++ as the
base for teaching programming. I thought that I would put in my 2 cents
worth as a different perspective.
I think that C++ gave me alot of grou
Hi all,
Just wondering if someone could direct me in the right direction...
I am trying to find the number of elements in an array?? any clues gratefully
accepted. thanks as always,
Chris.
- Original Message -
From: "John W. Krahn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 10, 2002 10:03 AM
Subject: Re: rename a file in win98
> > I have also tried using File::Copy but it doesnt copy the last line of
the
> > file.
> > My file is created by printin
> - Original Message -
> From: "Chris Zampese" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 10, 2002 12:57 AM
> Subject: rename a file in win98
>
>
> Just wondering if anyone has any bright ideas on how to rename
Just wondering if anyone has any bright ideas on how to rename a file in Win98. I
have tried the following...
my $old="C:/sentslips/sentslipstemp.txt";
my $new="C:/sentslips/sentslips1.txt";
rename($old, $new);
But no luck, the sctipt runs without errors (I am running with the -w switch a
email (which works)
I expected the file to look like this...
Placing_Slip_123_456_SOMECOMPANY+09-02-2002
Placing_Slip_890_777_SOMEOTHERCOMPANY+09-02-2002
etc, but I only get the first line.
#!C:\Perl\bin\perl.exe -w
#By Chris Zampese
#use strict;
use CGI ':standard';
use Net::SMT
Try the Mail::Pop3Client. It is available from CPAN I think. You should be
able to use this to get your messages. The following code is used to print
the headers of all your emails. This is straight from example code on the
Mail::Pop3Client site (cant remember the address sorry, but just tytyp
Just found a regex in the docs. I now have this...
while () {
print if /$email2/o;
}
but I am still not sure how to print to the file??
- Original Message -
From: "Chris Zampese" <[EMAIL PROTECTED]>
To: "perl list" <[EMAIL PROTECTED]>
Sen
Hello everyone,
I have a variable $myvar (an email address), and I would like to open a simple text
file which contains email addresses (one on each line) and check to see if the address
in $myvar is in there, if it is not, then append it o the end of the file, and if it
is, then close the f
thanks for the advice, but I think that it is a problem with the way the
network is set up as I am running that exact code (straight from the
documentation). Cheers anyway :)
this was in reply to...
I have the Mail::Pop3Client module installed. I have it running with the
debug option on,
me again :)
Just realised that I did not give you an explanation of why this works...
The expression is a simple regex (see Perl Documentation). The =~ is sort
of the 'equal to' part, and the i at the end makes the comparison case
insensitive.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
dont know if this helps, but the following code
$one = "ExamPle";
$two = "example";
if ($one=~/$two/i)
{
print "true ";
}
print "false";
outputs:
true false
(ie evaluates the expression in the curly braces)
and if you change the top word to ExanPle (change the m to n)
then it only outputs:
Hello again,
I love you guys, really I do!! (shameless greasing, but also true appreciation!)
I have the Mail::Pop3Client module installed. I have it running with the debug option
on, and it appears to me that the server (pop3.xtra.co.nz) is accepting the user and
password that I send (i
Greetings and salutations to you all,
Trying to get POP3 to work. I have a program that should get all the headers and
subjects from the pop3 server, but it displays none, and if I put a check in to see
how many messages there are it says there are none, despite me having sent myself some
t
Hello everyone!
I am still trying to read the subject line of all messages in my Outlook
Express Inbox. I know that this is possible using VB SCript - microsoft
provides comprehensive tutorials in their suppport pages, but I cannot seem
to get it to run in Perl.
I thought that maybe it w
Hi All,
Just needing help regarding ending a script properly. I have a script which I
use basically to send an email consisting of the data entered in a form. The start
looks like this..
#!f:\intranet\cgi-bin\bin\perl.exe -w
use CGI ':standard';
use Net::SMTP;
Then I use...
$objMail=Ne
Hi everyone,
I am running a script on an Intranet. It is called when the submit button of a
form is clicked. It takes all the items in the form, puts them into a different form,
and emails that form away. This all works, but I get a server error page after I hit
the submit button. Any id
irst. If it doesn't, then just
turn
>them into simple variables and use the simple variable instead.
>
>$field_name = $INPUT{field_name};
>
>I'd sure love to see a working example of NET::SMTP, not that you have to,
>but
>I'm sure I would use it.
>
>Gary
Tried the double quotes, but then it ignores the $INPUT{field_name}
altogether, I think maybe something to do with it being HTML, as I have had
it going OK if I just have a simple text message like
$mymessage='this is the field $INPUT{field_name}';
--- Chris Zampese <[EMAIL PROT
I have a program that takes input from a form, splits it and saves the values in an
array - $INPUT{field}
I then create a NET::SMTP mail instance, and message is a string ($mymessage) in which
I have inserted the form values.
This is so that I can create a form which when submitted will send a
When I execute the folowing script (to insert form input into $In), I get an error
message saying
unmatched right curly bracket line 60 at end of line
syntax error near "}" Line 60
But I have been through the code over and over, and as far as I can see, all the
brackets match up??
How do I call a subroutine in a cgi script. I thought that it was just
subroutine_name();
but that does not seem to be working for me?
You guys are great. Thanks for your help (both from answering my questions, and from
answering other peoples!)
Chris
Hi everyone,
I am running a perl script through an Apache server, and the error log is showing
Global symbol "$whatever" requires explicit package name
for all my variables (Globals and locals),
any ideas,
Thanks in advance,
Chris.
>Hi im looking for a simple perl mail program source code , program that takes >your
>input and ask you for the address , etc,, and mail you the info to an >address.
>Thanx 4 ur help.
If the mail that you intend to get/send is not going to be too long (ie short
messages) try some javascript.
Sorry for the 'newbie' question, but I am going bald from pulling my hair out, so I
had to ask some people with brains...
I am trying to run a CGI script on an Intranet. Basically the user opens a form
in the intranet and when they submit it a modified copy (ie slightly different layout)
i
Hello all,
I am working within a small network (10 computers). I am trying to
create a form that people can access through the f: (global drive). They
will fill in this form, and the results will be processed by my script, and
emailed to me. I have installed activeperl in the f drivebut I c
38 matches
Mail list logo