> MESSAGES:
>
> Useless use of string in void context at /common/bin/whaduname.AA line
> 56.
> Useless use of string in void context at /common/bin/whaduname.AA line
> 60.
> The lines and supporting evidence:
>
> 33 $cdate='/common/lib/cdatetest';
> 35 $cnum='/common/lib/cnumtest';
>
> 56o
Margit Brunder wrote:
>
> I get the error message "can't locate loadable object for module
> HTML::Parser in @INC at ./HTML/entities.pm line 79"
> although the module Parser.pm is in the same directory as entities.pm
> The path where Parser.pm is located is included in @INC !!
Some modules
Kurt Edmiston wrote:
>
> Hi, I'm trying to use taint mode on one of my cgi programs using the -T flag.
>
> #!/usr/local/bin/perl -wT
>
> When I check the syntax with "perl -c file.cgi" I get the following message:
>
> Too late for "-T" option at manager.cgi line 1.
Try
perl -cT manager.
Peter Lemus wrote:
>
> Hi, I'm getting a syntax error on the following
> command
>
> $PIDS=`ps -ef | grep $user | grep -v grep | cut -b
> 10-14`
>
> Please help. I need to get the process id of $user
> and assign it to PIDS, then kill it.
This little script worked on my system to prind out th
Richard Thompson wrote:
>
> We have moved a website off a server outside our offices to one inside. everything
>went fine but one of our cgi is not working so using some info shared in this forum
>we tried to run from the command line. now here is the problem we cannot get it to
>pass the arg.
Richard KHOO Guan Chen wrote:
>
> Sorry if this is a stupid question
>
> Just wondering if there is a site which have useful simple perl scripts
> for totally clueless people like me to look at? I am actually interested
> in trimming mail headers (save subject, from etc) for storage
>
I found
If you're using Apache, I highly recommend the O'Reilly book "Writing
Apache Modules with Perl and C" by Lincoln Stein and Doug MacEachern
(ISBN: 1-56592-567-X). A section of the book starts with a simple
authentication example and builds on it (including a couple of different
way to store sessio
Me wrote:
>
> > Can't locate Gnome.pm in @INC (@INC contains:
> > /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1
> > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
> > /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .)
> at
> > ./test.pl line 4.
> > BEGIN fa
Is that all of your code? I tried it with Perl
C:\WINNT\PROFILES\dan>perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-object
on NT (I don't have an ME machine around to try
If you could find a copy of "Perl Cookbook" (Pub: O'Reilly, Authors: Tom
Christiansen & Nathan Torkington, ISBN: 1-56592-243-3) look at recipes
17.11 Forking Servers
17.12 Pre-Forking Servers
17.13 Non-Forking Servers
Ahh, I found these two links that show the same code a
I don't think you're going to be able to do what you want to do.
No terminal I know about accepts standard input (STDIN) as an argument.
What I mean is that terminals are not like grep, sed, awk, sendmail, et
al. These programs all accept STDIN as an argument so you can pipe from
grep to sed to
Use the 'g' switch so the pattern match is
$mystring =~ s/\'/\\'/g;
This 'g' says do it for all occurrences (I remember it by thinking of it
as the 'g' in 'globally').
Dan
"J. Patrick Lanigan" wrote:
>
> I was using:
>
> $mystring =~ s/\'/\\'/;
>
> ...to replace ' with \' in
t may not be the best solution but it will get around the error.
Dan
Dan Brown wrote:
>
> I'm sorry, strike that. I had the 'use strict' commented out when
> testing with 5.6.1. Perl 5.6.1 gives the same warning.
>
> Dan Brown wrote:
> >
> > Johnathan e
I'm sorry, strike that. I had the 'use strict' commented out when
testing with 5.6.1. Perl 5.6.1 gives the same warning.
Dan Brown wrote:
>
> Johnathan evidently didn't see the cacheout (as I didn't).
>
> I assume you are using a perl version prior to
See
perldoc perlre
and search for \Q
Dan
"Lee, Janet" wrote:
>
> Hi all.
>
> Everyone has been so helpful with my other questions, I thought I would put
> out another one.
>
> I'm writing a script that searches through an array of hashes. One of the
> possible fields in the hash is
I'm not sure what you mean by your last question (what pattern do you
use when the output file...).
The error is due to the fact that outside of quotes the > is an operator
(greater than). Try
open( RESULT, ">$outfile" ) or die "$!";
With the single greater than ">" the output file wil
Johnathan evidently didn't see the cacheout (as I didn't).
I assume you are using a perl version prior to 5.6.1. I have both 5.005
and 5.6.1 installed. The code works with 5.6.1 but gives the error you
see when using 5.005.
Other than upgrading to 5.6.1 (maybe 5.6.0 works fine too), I'm at a
l
There's a couple of problems that sound get you started. The first I
see is that @_ is an array containing everything that was passed in. So
when you did
@parms = @_;
The values of each element of @parms are as follows
$parms[0] # first parameter which was $email
$par
Ahh, yes, that would make a difference. I didn't notice that when
running my tests for my previous reply. Good eye, Gary.
One thing to note is that Oracle allows you to get cursors back. In
those cases, I don't think putting the vars in the execute is going to
work as additional arguments are
That should work (at least it did on my system).
What kind of error are you getting? Without this we on the list can
give you only very vague ideas of what might be going on.
One thing I found is that I need to give the full table name (e.g.,
myschema.mytable).
Another was that I added a "BEGI
Please go to
http://www.perl.com/
There is a pulldown menu at the top right. Make sure "binaries" is
selected. Click the 'go' button to the right of this pulldown. You'll
get a list of binary distributions (OS/2 is in the list).
Dan
Calin Popa wrote:
>
> Hi, are there ani perl5 bin
The error message you include points to some "loadable object" that Perl
is looking for. Did Test.pm by chance reference a library? Is that
library present somewhere in one of the directories included in @INC?
Perl can find Test.pm. It cannot find something that Test.pm needs. If
Perl cannot
Go to
http://www.perl.com/
and click on the "Download" link in nav bar on the left-hand side of the
screen. Then read the instructions.
Saritha_Vinod wrote:
>
> Hi
>
> Kindly advice me how to install Perl Software in the below Operating
> Systems:
> 1. Linux
> 2. Windows 98
>
> Tha
Please, do not repost. Mike, please check the archive at
http://archive.develooper.com/beginners%40perl.org/
If we have people reposting (and reposting and reposting) this list will
become quite cluttered.
Thanks,
Dan
"Hanby, Mike" wrote:
>
> Could you repost the answer? I just join
"Stout, Joel R" wrote:
>
> Ok I know what it does ('cause I ran it, see below) but I still don't fully
> understand how. Also can you give a little insight into passing arrays to
> subroutines/functions. I can pass them alright but have problems accessing
> them. I use $_[0] but it doesn't see
Paul Johnson wrote:
> But don't go relying on the ordering of the array. Hashes don't
> preserve order. If you need an ordering, impose it. eg
>
> print join "\n", sort @ary;
Should we get into a thread on 'sort' ~8^) ?
I thought I'd throw this in there (in case some of you get adventur
Excellent description Collin. I have just a couple of comments to add.
Collin Rogowski wrote:
>
> A hash is a data structure, which assigns a key to value.
> In Perl the key is given in the curly braces. A key/value
> pair is entered like this: $hash{$key} = $value (assuming
> the variables $ke
I would like to point out that the script not only needs to be
eXecutable but Readable as well (the perl interpreter needs to be able
to read the script). I believe that the safest permissions can be set
as follows:
chmod 755 script.pl
Allen, the first thing that popped into my mind after re
Is this really the exact script? The reason I ask is that you shouldn't
even get as far as to get the error you present ("Premature end of
script headers"). There is an extra curley brace at the end that should
have caused the Perl compiler to croak with something like
Unmatched right c
I for one will need more information to diagnose this.
You mention that the OS is different on the two boxes but what about the
rest of the configuration? For example, is the web server on the old
machine the same as on the new machine (e.g., are the web servers on
both machines Apache?)? Are t
I find that I use perldoc much more frequently than the man pages.
Bonus! perldoc comes with all Perl installations.
Try something like
perldoc perldoc
from a DOS window.
Dan
Ray Calkins 100660207 wrote:
>
> Hi All:
>
> I'm very much a beginning perl programmer, and I just discovered
Try
http://cvshome.org/
Dan
[EMAIL PROTECTED] wrote:
>
> I can't seem to find the CVS Client. I have looked in samba.org and have
> perused the "CVS Access to pserver" document (which states that I need to
> install a recent copy of CVS) with no luck. I must be missing the obvious.
>
> I
32 matches
Mail list logo