Hi,
I am using Net::mysql to connect with database mysql.Though sytax is correct it is
still giving error:
Can't locate object method "new" via package "MySql" (perhaps you forgot to load
"MySql"?) at E:\PERLTR~1\perl\VALIDA~1.PL line 10. Content-type:text/html
My code is as follows:
#!/usr/l
this is what one of mine looks like.
use Net::MySQL;
my $mysql = Net::MySQL->new(
hostname => 'localhost',
database => 'pixelscan',
user => 'webuser',
password => '3dpixelscan'
>
> Hi All,
>
> I need to output both STDOUT and STDERR to the same log file, what is
> the best way to achieve this, I'm currently using;
>
> open STDOUT, "> $logfile" or die "message";
> open STDERR, ">> $logfile" or die "message;
>
> Which I'm sure is not right, but sort of works.
>
>
Dear All
we have a machine reservation tool ( an intranet
web site) which displays brief info about
the test machines including HP, Solaris,Tru64 &
other unixes
& as NT as well which are just included but the
info
( such as OS , version , packagesproducts
installed , current users ,
Hello,
We are using Apache 1.3.26, Perl 5.5.3 and perl-cgi scripting to
communicate to applications with XML. App1 calls the cgi script that is
placed in the other machine. The script reads the XML message and pass it to
pipe1. This message is processed by App2 and a response message is returned
help on "Can't locate MLDBM.pm ..."
Didn't find a list at CPAN for installing modules. Please point me if this
query is out of place.
Since loading MLDBM-2.01, non-root, on an Apache
Cobalt Linux release 5.0 (Pacifica)
Kernel 2.2.16C27_III on an i586 running Perl
Hello Perl-gurus,
I have made a program that parses through a XML-document using the XML::DT.
My problem is that I have to parse very big files > 2 Gb and the XML::DT is
a bit slow. I split the file and process smaller chunks so that the memory
usage doesn't go through the roof but it still takes
Hi
I'm having a hard tile opening creating reading and writing files with =
perl on a unix palataform sometimes it works sometimes do no.
I suspect it has to do with permissions so can anybody tell me witch =
permissions must br set to perfom these actions properly (in numeric =
form ex: 755) on:
Sorry :) but your script seems not doing what you explained above.
I have the impression that your problem is not related to a concurrency problem.
Could you send a more detailed code, please?
José.
Anyway, here some reads from Perl Cookbook :
16.11. Making a Process Look Like a File with Named
On Sun, 26 Jan 2003, Andre wrote:
> Date: Sun, 26 Jan 2003 00:21:51 -0200
> From: Andre <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Permissions-Perl
>
> Hi
> I'm having a hard tile opening creating reading and writing files with =
> perl on a unix palataform sometimes it works sometim
Hi Andre,
Well, I'm not going to do your homework for you. You were given this assignment in
order to learn how to construct permissions. I will offer some considerations I take
into account when setting permissions for CGI:
Andre wrote:
> 1-The directory in wich the perl script wull run
AF
Also communicating applications via XML sounds like a job for SOAP ...
http://cookbook.soaplite.com/#soap%20cookbook
José.
> -Original Message-
> From: Enric Roca [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:21 PM
> To: Beginners Perl
> Subject: Concurrency problem
>
I installed OpenBSD's Apache but the default configuration is that httpd
runs chroot'd to /var/www for security. This is fine, except that for
the life of me, I cannot get my Perl CGI scripts to run. I've tried
linking /usr/bin/perl into /var/www but that doesn't work because of the
chroot, I
From: "Brian Ling" <[EMAIL PROTECTED]>
> > I need to output both STDOUT and STDERR to the same log file, what
http://search.cpan.org/author/KENSHAN/IO-Tee-0.64/Tee.pm
Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards
Hi,
I tried your solution but still dont get the output.It is showing same
error.Can u help me to solve this problem?
- Original Message -
From: "Mat Harris" <[EMAIL PROTECTED]>
To: "Pankaj Kapare" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 3:41 PM
Subject: R
José,
Thanks for the info, but forget that I'm using pipes. I need that the perl
script, when is executed, first detect if it is already executing and if it
is wait for some miliseconds. I'm new in Perl so I don't know how to get
this, but if this was possible I think that it would solve my proble
On Mon, 27 Jan 2003, Ben Siders wrote:
> Date: Mon, 27 Jan 2003 08:48:58 -0600
> From: Ben Siders <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Perl in OpenBSD Apache
>
> I installed OpenBSD's Apache but the default configuration is that httpd
> runs chroot'd to /var/www for security.
Hi
I am trying to connect to the mysql but it is giving erorr like this:
Can't locate object method "connect" via package "Net::MySQL"
My code is as follows can anybody help me to solve this problem?
#!/usr/local/bin/perl
print "Content-type:text/html\n\n";
use Net::MySQL;
$DBHOST = "localhost";
Enric Roca wrote:
> Hello,
>
> We are using Apache 1.3.26, Perl 5.5.3 and perl-cgi scripting to
> communicate to applications with XML. App1 calls the cgi script that
> is placed in the other machine. The script reads the XML message and
> pass it to pipe1. This message is processed by App2 and a
John Baker wrote:
On Mon, 27 Jan 2003, Ben Siders wrote:
Date: Mon, 27 Jan 2003 08:48:58 -0600
From: Ben Siders <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Perl in OpenBSD Apache
I installed OpenBSD's Apache but the default configuration is that httpd
runs chroot'd to /var/www for s
On Mon, 27 Jan 2003 08:48:58 -0600, Ben Siders <[EMAIL PROTECTED]> wrote:
> I installed OpenBSD's Apache but the default configuration is that httpd
> runs chroot'd to /var/www for security. This is fine, except that for
> the life of me, I cann
Andre wrote:
> Hi
> I'm having a hard tile opening creating reading and writing files
> with = perl on a unix palataform sometimes it works sometimes do no.
> I suspect it has to do with permissions so can anybody tell me witch =
> permissions must br set to perfom these actions properly (in numer
> -Original Message-
> From: Enric Roca [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 4:09 PM
> To: NYIMI Jose (BMB); Beginners Perl
> Subject: RE: Concurrency problem
>
>
> José,
>
> Thanks for the info, but forget that I'm using pipes. I need
> that the perl script, whe
On Monday 27 January 2003 03:10 pm, Ben Siders wrote:
> John Baker wrote:
> >On Mon, 27 Jan 2003, Ben Siders wrote:
> >>Date: Mon, 27 Jan 2003 08:48:58 -0600
> >>From: Ben Siders <[EMAIL PROTECTED]>
> >>To: [EMAIL PROTECTED]
> >>Subject: Perl in OpenBSD Apache
> >>
> >>I installed OpenBSD's Apache
Help installing Storable (on the way to installing MLDBM-2.01)
Installation of MLDBM requires first to install DataDumper, then Storable.
DataDumper-2.101 installed OK,
Storable-2.05 did not ...
[esickafus@webserv01 Storable-2.05]$ perl Makefile.PL
PREFIX=/home/sites/site61/user
Help: trapped in a circle and can't get out.
1) Tried to install Storable from cpan. During the attempt, CPAN said ...
There's a new CPAN.pm version (v1.63) available!
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamle
Ed,
>
> [esickafus@webserv01 Storable-2.05]$ perl Makefile.PL
> PREFIX=/home/sites/site61/users/esickafus/lib
>From the above I deduce you are trying to install modules without root
access. True?
http://www.cgi-interactive.co.uk/cpan_installing_perl_modules.html
Can possibly be of some help. I foun
Sorry should have warned you :-)
On Mon, 27 Jan 2003 13:36:19 -0500, Ed Sickafus <[EMAIL PROTECTED]> wrote:
> Help: trapped in a circle and can't get out.
>
> 1) Tried to install Storable from cpan. During the attempt, CPAN said ...
>
> Th
Nyimi Jose wrote:
>
> #!/usr/bin/perl -w
> use strict;
> use Proc::ProcessTable;
> use File::Basename;
>
> my $is_running=&a_check_subroutine();
> sleep (60) if $is_running;#sleep 60 seconds
>
> sub a_check_subroutine{
> my $script=quotemeta File::Basename::basename($0);
> my $t = new Proc::Pro
Hello List,
If any one could shed some light on what I'm missing/what the errors mean I'd sure
appreciate it!
I'm trying to install the Net::SMTP::Multipart Module
http://search.cpan.org/author/DROBERTS/Net-SMTP-Multipart-1.5/Multipart.pm
I've installed several modules today but I can't
Ed Sickafus wrote:
> Help: trapped in a circle and can't get out.
>
> 1) Tried to install Storable from cpan. During the attempt, CPAN said
> ...
>
> There's a new CPAN.pm version (v1.63) available!
> You might want to try
> install Bundle::CPAN
> reload cpan
> without quitting th
I have a script that is used for text messaging. I added a line of code to
check to make sure that input is in a field before the message is sent. My
code is as follows:
if($b !~ m/^\w[\w\s]*\w$/) { $error .= "Enter a message \n"; }
This fails if the field has any punctuation characters. I have
Pankaj Kapare wrote:
>
> Can't locate object method "connect" via package "Net::MySQL"
>
> my $mysql= Net::MySQL->connect($DBHOST, $DBNAME, $DBUSER, $DBPASS);
shouldn't that be:
my $mysql = Net::MySQL->new($DBHOST,$DBNAME,$DBUSER,$DBPASS);
david
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Liebert, Sander wrote:
> I have a script that is used for text messaging. I added a line of
> code to check to make sure that input is in a field before the
> message is sent. My code is as follows:
>
> if($b !~ m/^\w[\w\s]*\w$/) { $error .= "Enter a message \n"; }
>
> This fails if the field ha
>
> I have a script that is used for text messaging. I added a
> line of code to check to make sure that input is in a field
> before the message is sent. My code is as follows:
>
> if($b !~ m/^\w[\w\s]*\w$/) { $error .= "Enter a message \n"; }
>
> This fails if the field has any punctuatio
>I have a script that is used for text messaging. I added a line of code to
>check to make sure that input is in a field before the message is sent. My
>code is as follows:
>
>if($b !~ m/^\w[\w\s]*\w$/) { $error .= "Enter a message \n"; }
>
>This fails if the field has any punctuation characters.
On Mon, 27 Jan 2003 13:57:12 -0500, Bob Showalter <[EMAIL PROTECTED]>
wrote:
> (Somebody may now of a way to force CPAN to reconfigure itself other than
> removing the Config.pm file).
>
At the cpan prompt you type
> o conf
To get a list of th
,
I think that is my problem anyway...
I am using the Net::SMTP::Server module as the server end of testing
SMTP mail. Very basic, which is what I was after. It uses
Net::SMTP::Server::Client to handle incoming client requests.
The example - changed just a bit - lets me print the Envelope data
(
On Mon, 27 Jan 2003, Liebert, Sander wrote:
> Date: Mon, 27 Jan 2003 12:54:04 -0600
> From: "Liebert, Sander" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Regular Expression's and punctuation
>
> I have a script that is used for text messaging. I added a line of code to
> check to make
Bob Showalter wrote:
>
>$error = "Message required" unless $text =~ /[:alpha:]/;
>
is this a new syntax? or should it be:
$error = "Message required" unless text =~ /[[:alpha:]]/;
david
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
LS> I have a script that is used for text messaging. I added a
LS> line of code to check to make sure that input is in a field
LS> before the message is sent. My code is as follows:
LS>
LS> if($b !~ m/^\w[\w\s]*\w$/) { $error .= "Enter a message \n"; }
LS>
LS> This fails if the field has any
david wrote:
> Bob Showalter wrote:
> >
> >$error = "Message required" unless $text =~ /[:alpha:]/;
> >
>
> is this a new syntax? or should it be:
>
> $error = "Message required" unless text =~ /[[:alpha:]]/;
Nope, you're right. Sorry 'bout that.
The POSIX character classes must appear wi
On Mon, 27 Jan 2003 14:17:36 -0500, Tim Musson <[EMAIL PROTECTED]> wrote:
>
> The above code bit works just fine, with the exception of the
> $client->{TO} part. That prints ARRAY(0x1d8a454) and I _think_ that is
> an array reference (right?).
>
Pankaj Kapare wrote:
> Hi I tried your solution but still it is showing the same error.Can u
> help me to solve this problem?
> Pankaj
>
> - Original Message -
> From: "Rob Dixon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 27, 2003 4:38 PM
> Subject: Re: Help to c
Hi,
How can I look down in a folder structure i.e. for checking last access time
on files. I need to be independent of the depth of the folder structure so
it will go down to the bottom of the structure - whether there are 2 or 10
levels.
I tried the "glob" function but it need a specific depth i
On Mon, 27 Jan 2003 21:30:39 +0100, "Jakob Kofoed" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can I look down in a folder structure i.e. for checking last access time
> on files. I need to be independent of the depth of the folder structure so
> it
On Mon, 27 Jan 2003, Jakob Kofoed wrote:
> Date: Mon, 27 Jan 2003 21:30:39 +0100
> From: Jakob Kofoed <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Looking down in folder structure
>
> Hi,
>
> How can I look down in a folder structure i.e. for checking last access time
> on files.
>
One
Hey wiggins,
My MUA believes you used
to write the following on Monday, January 27, 2003 at 2:37:14 PM.
wdo> Yes that is an array reference, which is likely correct.
Cool, at least I am not totally out to lunch...
>> My question is how do I get it to print correctly like the FROM
>> l
Hi everyone!
I'm using the Mai::Box module for reading mail from a client's inbox
and then I have to validate some info in the headers and last I have to
send a new mail to another client based in the info of the first
messageIt works great .. but...I want to execute the script like a
no
On Mon, 27 Jan 2003 10:04:06 -0500 (EST)
John Baker <[EMAIL PROTECTED]> wrote:
>
>
>
> On Mon, 27 Jan 2003, Ben Siders wrote:
>
> > Date: Mon, 27 Jan 2003 08:48:58 -0600
> > From: Ben Siders <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Perl in OpenBSD Apache
> >
> > I installed O
> "John" == John Baker <[EMAIL PROTECTED]> writes:
John>
John> Expect to spend A LOT of time hacking BSD if you're new to it, but
John> trust me, the benefits far outweight the hassles. There's a reason
John> why customers don't run xBSD: it's hard and one has to have a propensity
John> to wa
Help: How to install Storable manually w/o root access (my CPAN doesn't
work)?
Tried to install Storable-2.05 w/o root access. It failed for lack of
Test::More 0.41.
Searched CPAN for Test::More 0.41 and was pointed to Test::Simple-0.47.
Tried to install Test::Simple-0.47, it failed for lack of
Thanks you all guys!
looks like its working ...with some issues at least i dont get pm not found
message anymore
root@host# ./mail.pl
retrying in 1 seconds...
connect to localhost failed (Connection refused)
connect to localhost failed
connect to localhost failed (Connection refused) no (more) ret
Hi all,
I have cgi.pl file in internet server. I would like to copy a log file(read
only file) in J:\ (which I map it to the other server) to my d:\temp folder.
With the following code, I got "can't open input : Permission denied"
message when I open th cgi.pl file thru IE browser. How could I get
On Sun, 26 Jan 2003 18:49:59 +0530, Sukrit wrote:
> How do i delete the last 12 (or so) lines of a large file (400+ lines)
> without loading the whole into memory.
use Tie::File;
tie @line, 'Tie::File', $filename or die "...";
splice @line, -12;
untie @line;
Greetings,
Janek
--
To unsubscrib
On Mon, 27 Jan 2003 21:30:39 +0100, Jakob Kofoed wrote:
> How can I look down in a folder structure i.e. for checking last access time
> on files. I need to be independent of the depth of the folder structure so
> it will go down to the bottom of the structure - whether there are 2 or 10
> levels.
On Fri, 24 Jan 2003 16:35:02 +, Deborah Scott wrote:
> ...
> How do I send an email using perl?
> ...
perldoc -q 'send mail'
Greetings,
Janek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, 27 Jan 2003 12:21:02 +0100, Enric Roca wrote:
I don't see any real concurrency problem in your script, but I'm also not
a concurrency expert. However, I believe, I can help you to write your
script more Perlish :-)
> This is the script:
>
>
> #!/usr/local/bin/perl
use strict;
use warni
Not sure I should reply, I haven't seemed to be able to help ;-).
Ed Sickafus wrote:
Help: How to install Storable manually w/o root access (my CPAN doesn't
work)?
Tried to install Storable-2.05 w/o root access. It failed for lack of
Test::More 0.41.
Searched CPAN for Test::More 0.41 and was p
I would check what user the web server is running under. Chances are you
are getting different credentials when you run it through the browser.
-Original Message-
From: Angela_work [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:50 AM
To: [EMAIL PROTECTED]
Subject: question
>
>if your file is a text file
>
>#! /usr/bin/perl -w
>
>$file = "/suidbin/sendmail -t";
>$var = "the_file.txt";
>
>open(FILE, "$var") || die "cant open text file";
>@file = ;
>close(FILE);
>
>##open pipe to sendmail
>open(MAIL, "|$file") || die "cant open sendmail";
>print MAIL "To: blah\@devn
> -Original Message-
> From: Southworth, Harry [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 24, 2003 10:38 PM
> To: [EMAIL PROTECTED]
> Subject: MS Word question
>
>
> I'm running Perl on Cygwin on top of Windows 2000.
>
> I have a lot of ascii text files that someone has thoughf
>
> >
> >if your file is a text file
> >
> >#! /usr/bin/perl -w
> >
> >$file = "/suidbin/sendmail -t";
> >$var = "the_file.txt";
> >
> >open(FILE, "$var") || die "cant open text file";
> >@file = ;
> >close(FILE);
> >
> >##open pipe to sendmail
> >open(MAIL, "|$file") || die "cant open sendm
On Mon, 27 Jan 2003, Scott, Deborah wrote:
> Date: Mon, 27 Jan 2003 16:54:28 -0600
> From: "Scott, Deborah" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Email function question
>
>
>
> The above file works great on my NT server but how do I send it to
> multiple people? I've trie
No takers eh, then
How would I go about using just the .pm file instead of the installed module with the
example at the link below?
require "./Mulitpart.pm";
sub import {
???/
}
import; # ???
Thanks
Dan
>
> Hello List,
>
> If any one could shed some light on what I'm mi
Here's what I've tried ...
If I do this :
#!/usr/bin/perl
use lib qw(/home/dmuey/perlmod/Net-SMTP-Multipart-1.5);
use Multipart;
It gives me :
Can't modify subroutine entry in scalar assignment at
/home/dmuey/perlmod/Net-SMTP-Multipart-1.5/Multipart.pm line 30, near ");"
BEGIN failed--compil
> Here's what I've tried ...
>
> If I do this :
>
> #!/usr/bin/perl
>
> use lib qw(/home/dmuey/perlmod/Net-SMTP-Multipart-1.5);
> use Multipart;
>
> It gives me :
>
> Can't modify subroutine entry in scalar assignment at
> /home/dmuey/perlmod/Net-SMTP-Multipart-1.5/Multipart.pm line
> 30
On Mon, 27 Jan 2003 17:53:23 -0600
"Dan Muey" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Here's what I've tried ...
> >
> > If I do this :
> >
> > #!/usr/bin/perl
> >
> > use lib qw(/home/dmuey/perlmod/Net-SMTP-Multipart-1.5);
> > use Multipart;
> >
> > It gives me :
> >
> > Can't modify subrou
Dan Muey wrote:
>
> Line 30 in that file is :
> our $VERSION = sprintf("%d.%d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/);^M
>
> Notice that ^M? that's all over the file. I did
> perl -e '@f = `cat Multipart.pm`;foreach $l(@f) { $l =~ s/\^M//g; print
> $l; }' > Multipart2.pm
>
> And modified my test
Hey guys:
I'm still very new to perl and I need to know if this is at all possible...
If possible... any ideas on how to go about it...
Here is the deal... I would like to build a database with addresses for
specific last names extracted from one of the online directories such as
switchboard.com
Bob Showalter wrote:
This looks suspicious. I'd say your CPAN config is fubar.
Hi Bob,
Maybe I'm spoiled here, as I've always worked in integrated development environments,
and only ventured into Perl; when I saw a good, transparent, installer available from
ActiveState. So in a case like thi
71 matches
Mail list logo