On 02/22/2007 02:40 PM, Zembower, Kevin wrote:
-Original Message-
From: Mumia W. [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 3:27 PM
To: Beginners List
Subject: Re: File uploading using CGI
On 02/22/2007 12:58 PM, Zembower, Kevin wrote:
I'm having problems uploading a
>> I need to search a particular string in a set of files in a directory. The
>> string appears only in one of the files in the directory.
>> I need to retrieve the file name and then access the line of that
>> particular file in which the string occurs.
>>
>> NOTE: The perl script also resides i
Hi and thanks Sutton,
> Igor Sutton wrote:
> Hi Mug,
>
> package PackA;
>
> sub new {
> my ($class) = @_;
> my $self = {};
> bless $self, $class;
> my $self->{B} = PackB->new($self);
> return $self;
> }
>
> package PackB;
>
> sub new {
> my ($class, $packA_ref) = @_;
> my $self = {
> A => $packA_re
[EMAIL PROTECTED] (Sumit Shah) writes:
> I have a string like: 'a = 1; b = 2; c = 3; d = 4'
>
> Whats the best way to parse it so that I can get a value for c, which
> is 3? I have used the hash approach. But, I was wondering if there is
> a faster way to do it in Perl.
I don't know about `best',
Mumia, thanks for your suggestion. Unfortunately, it didn't work; the
file in /tmp/ on the server is still empty and the attachment received
was only 64 bytes and was completely empty, as opposed to my previous
solution, which at least contained the file path and name.
Thanks, again, for trying.
On 02/22/2007 12:58 PM, Zembower, Kevin wrote:
I'm having problems uploading a file with perl and CGI.pm. I have a form
that uses a script with CGI and MIME::Lite to email the contents of the
form and the file uploaded to an individual. I've written this section
so far:
[...]
$msg->attach(Typ
I'm having problems uploading a file with perl and CGI.pm. I have a form
that uses a script with CGI and MIME::Lite to email the contents of the
form and the file uploaded to an individual. I've written this section
so far:
#If there's a file to be attached, attach it here.
# This only works if
i
On 2/22/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote:
I need to search a particular string in a set of files in a directory. The
string appears only in one of the files in the directory.
I need to retrieve the file name and then access the line of that
particular file in which the string occ
On 2/22/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote:
Hello All,
I need to search a particular string in a set of files in a directory. The
string appears only in one of the files in the directory.
I need to retrieve the file name and then access the line of that
particular file in which th
Hello All,
I need to search a particular string in a set of files in a directory. The
string appears only in one of the files in the directory.
I need to retrieve the file name and then access the line of that
particular file in which the string occurs.
NOTE: The perl script also resides in the
>
>I am not an advanced perl programmer and I do not have my books with me. I
>want to determine if a string is within a string and to not process the string
>if the string is found. Could someone please provide a simple sample.
>
>From "perldoc -f index" :
index STR,SUBSTR,POSITION
On 2/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I am not an advanced perl programmer
Have courage -- you'll get there someday!
and I do not have my books with me.
That's what the perldoc command is for.
I want to determine if a string is within a string
Do you want the index f
Hello
I am not an advanced perl programmer and I do not have my books with me. I want
to determine if a string is within a string and to not process the string if
the string is found. Could someone please provide a simple sample.
Thanks,
Andrew
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Mug,
2007/2/22, Mug <[EMAIL PROTECTED]>:
Hello List,
My question is if this work safe ?
Here I have the way to use 2 modules and shares their methods cross
along, because
I don't want to split out the common part as another package, since
there are class properties
inside. If I split out so
14 matches
Mail list logo