Hi,
Thanks to all who commented. They are all correct. John Joseph's suggestion
to use #!/usr/bin/per; -w would work too. But Jason's suggestion below
pointed me to the solution. When the command perl test.pl work, right there
I realize file format might be suspect. I pulled out my HEX editor
Phillip Bruce writes ..
> Sometime back some one gave me the path to a config file in
> which told cpan where and what compilers that my systems uses.
> Does anyone have any ideas to this.
/path/to/perl/lib/Config.pm
--
jason king
A Canadian law states that citizens may not publicly
Hi,
Sometime back some one gave me the path to a config file in
which told cpan where and what compilers that my systems
uses.
Does anyone have any ideas to this.
I get this error:
/usr/ucb/cc: language optional software package not
installed
That is because I'm not using cc but gc
Well I had the job interview, and it would seem that "CASE tool" is the
answer to my query. The company is migrating from a WinNT environment
to a UNIX environment and using Teamsite by Interwoven as the process
control environment-- that would be the CASE tool.
Thanks for all your suggestions;
Billy Joedono writes ..
>Below is a piece of code central to my problem. I've used this a lot
>of time without problem, but on this occasion, it fails me. Whenever I
>run the script, it ends with the error "bash: ./test.pl: No such file
>or directory". The funny thing is, if I activate the debug
On Fri, Apr 27, 2001 at 09:44:42AM +0700, Billy Joedono wrote:
> Hi all,
>
> Below is a piece of code central to my problem.
[snip]
> #!/usr/bin/perl
That should read "#!/usr/bin/perl -w"
Just after that should be a line with "use strict;".
Best of luck,
J
--
Rule #0: Spam is theft.
Hi all,
Below is a piece of code central to my problem. I've used this a lot of
time without problem, but on this occasion, it fails me. Whenever I run the
script, it ends with the error "bash: ./test.pl: No such file or
directory". The funny thing is, if I activate the debug option (use
#!/u
Susan Arante writes ..
>I'm getting the above error when my perl script runs a batch
>(master.bat) that in turn runs a batch (slave.bat) that runs another
>perl script. The process kicks me out
sounds peculiar .. but I don't think it has anything to do with your
Perl5/Perl6 dance .. see comments
Bryant C. Vernon writes ..
>I created an Adduser command for Windows NT that forced user to change
>their password on their first login. Having recently updated my PERL
>binaries, I have noticed that this module is no longer available for
>download via ppm. Furthermore, I don't know of any othe
Shawn Caldwell writes ..
>I am having a problem with a script I'm writing for a search button.
>it works just fine except when I'm searching for a part number with a
>letter in it. I am searching through a comma delimited database. If
>I have A35CH5 and A22F4, and I search for A22F4, my script wi
This used to be working but after my very adventurous fiasco (deleting
perl5, installing perl6, deleting perl6, installing perl5 - yes i deleted
not uninstalled), it's not working anymore. I'm running perl5 on NT.
I'm getting the above error when my perl script runs a batch (master.bat)
that in
Hi Janet,
if you need to install this thing via a compile with c on a windows
machine, gcc is the wrong appliance. visit www.borland.com and
download the bcc32 compiler for FREE.
it does both C and C++ non-gui style. Lots of help with it too.
regards
SunDog
At 11:06 PM 4/24/01
Hi Dennis,
the case construct is too obvious ...
more than likely they have some Computer Assisted System Engineering
i.e. C.A.S.E. too in mind that needs to have PERL integrate with some
objects / domains / etc ...
That's my guess..
regards
SunDog
At 05:37 PM 4/24/01 -0600,
--- Paul <[EMAIL PROTECTED]> wrote:
>
> --- Bill Lawry <[EMAIL PROTECTED]> wrote:
> > Pretty cool but when used on a file it breaks hyphenated words into
> > their components and counts them separately:
> >
> > 17 occurrences of 'Acct'
> > 3 occurrences of 'Authentic'
> > etc
> >
> > instead o
--- Bill Lawry <[EMAIL PROTECTED]> wrote:
> Pretty cool but when used on a file it breaks hyphenated words into
> their components and counts them separately:
>
> 17 occurrences of 'Acct'
> 3 occurrences of 'Authentic'
> etc
>
> instead of:
>
> 3 occurrences of Acct-Authentic
> 3 occurrences o
--- Peter Lemus <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I need to create a log from a perl script that
> generates a lot of errors and successful completion
> messages. Please give me some tips on how I can
> accomplish this.
>
> thanks,
Are you just using warn()?
You can actually open STD
Could anyone please send me any code which will allow
me to display Blobs (Binary Large Objects)from a Sql
database, on my web page using perl!
it would me most helpfull.
Bob Hwan.
Do You Yahoo!?
Get your free @yahoo.co.uk address at
If you're talking about using a database (such as mysql) to store images
for later display/perusal on a web page, I believe I can offer a bit of
aid.
First - it's a bad idea. Databases add a number of layers of overhead
for the access of BLOB data as opposed to the filesystem of whatever OS
you'
This is a simple but redundant term for the (usually) brass part that holds
the bullet, primer and powder in proper configuration ... ;-)
- Original Message -
From: "Paul" <[EMAIL PROTECTED]>
To: "Greg Meckes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 10:47
Pretty cool but when used on a file it breaks hyphenated words into their
components and counts them separately:
17 occurrences of 'Acct'
3 occurrences of 'Authentic'
etc
instead of:
3 occurrences of Acct-Authentic
3 occurrences of Acct-Delay-Time
1 occurrences of Acct-Input-Octets
1 occurrence
gang,
If I'm tackling too much for a beginner, I realize you're not in the
business of doing someone else's work. Here goes: I'm attempting to use
find2perl using Binary build 522 provided by ActiveState Tool Corp.
http://www.ActiveState.com Built 09:52:28 Nov 2 1999
problem/task:
# print th
- Original Message -
From: Kevin Meltzer <[EMAIL PROTECTED]>
To: Peter Lemus <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 10:07 PM
Subject: Re: How to create a log file from a perl script
> Hi Peter,
>
> Look at the perlopentut man page:
>
> perldoc perlope
Hi Peter,
Look at the perlopentut man page:
perldoc perlopentut
That will show you how to open a file(s). Then, you can just write to them. If
I want all my 'print' statements in a script to print to a specific file, I
generally do something like:
sub DEBUG () { 1 }; # Or some level of debugne
Hi All,
I need to create a log from a perl script that
generates a lot of errors and successful completion
messages. Please give me some tips on how I can
accomplish this.
thanks,
=
Peter Lemus
Computer Networks Engineer
[EMAIL PROTECTED]
My Dad always tought me; when you do good; expe
Hi, Guys,
I'm running a perl script that generates lots of error
messages and successful completion messages. Please
give me some tips on how can I put all this data to a
log file.
thanks,
=
Peter Lemus
Computer Networks Engineer
[EMAIL PROTECTED]
My Dad always tought me; when you do good;
Hi All,
I created an Adduser command for Windows NT that forced user to change
their password on their first login. Having recently updated my PERL
binaries, I have noticed that this module is no longer available for
download via ppm. Furthermore, I don't know of any other way to force
users to
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
I would try altering your loop and rewrite it like so:
#!/usr/bin/perl
require("cgi-lib.pl");
print "Content-type: text/html\n\n";
$header = "/usr/home/m/ma/mayline/mayline.com/testnav.html";
unless(open(DAT, "../pricelist.db")) {
die, "Cannot Open File: pricelist.db" };
@data = ;
close(DAT);
pr
Hi Mark,
I assume the '(1' in the second and third binds are simply typos.
why don't you do away with the binds, and simply call
$sth2->execute($var1,$var2,$var3,$var4);
it should so the same job.
Gary
On Thursday 26 April 2001 6:03 pm, Mark Martin wrote:
> I'm really not sure what I'm doing
I'm really not sure what I'm doing here. Are my bindings in the wrong
place(in the real program they are inside an IF) or do I need explicit
bindings like this at all?
Cheers
use DBI;
use DBD::Oracle;
$dbh1 = DBI->connect( "dbi:Oracle:", "
On Thu, Apr 26, 2001 at 10:05:16AM -0400, Casey West wrote:
> On Thu, Apr 26, 2001 at 04:47:58PM +0200, Alexandre Safinia wrote:
> :
> : Hi there,
> : does anybody know if there is an alternative for Lex & Yacc
> : in Perl ?
>
> Go to the CPAN and take a look at Parse::RecDecent. It is a fa
Hi there,
does anybody know if there is an alternative for Lex & Yacc
in Perl ?
I have forgotten how to write C code and would like to avoid
restarting with C and starting from scratch with Lex & Yacc.
If you know about Verilog or VHDL language grammars or books
about this kind of p
On Thu, Apr 26, 2001 at 04:47:58PM +0200, Alexandre Safinia wrote:
:
: Hi there,
: does anybody know if there is an alternative for Lex & Yacc
: in Perl ?
Go to the CPAN and take a look at Parse::RecDecent. It is a fantastic
decent parser with a similar syntax to Yacc.
http://search.cpan.o
What's the email address for the perl advocacy email distro?
Bruce W. Lowther
Micron Technology, Inc.
Boise, Idaho
On Thu, Apr 26, 2001 at 02:49:41PM +0100, Gary Stainburn wrote:
> If I remove the line, the error goes away so it is definitely
> complaining about the print statement, but it looks perfectly fine to
> me.
Well there's nothing wrong with the print statement as such, it's just
that the value yo
I am having a problem with a script I'm writing for a search button. it
works just fine except when I'm searching for a part number with a letter in
it. I am searching through a comma delimited database. If I have A35CH5 and
A22F4, and I search for A22F4, my script will read through my dbase and s
Probably the easiest way to do this is if the machine that will be
running the command is a web server. You can just set up the script you
want to run as a cgi and have the calling script call the cgi via http.
Now, this is assuming alot, like security is not an issue and your web
server has
You can see a list of lists, and get their info from http://lists.perl.org
Cheers,
Kevin
On Thu, Apr 26, 2001 at 08:24:51AM -0600, blowther ([EMAIL PROTECTED]) spew-ed forth:
> What's the email address for the perl advocacy email distro?
>
>
> Bruce W. Lowther
> Micron Technology, Inc.
> Boise
Hi all,
Using the following code:-
63 foreach (@fieldmap) {
64 my ($dbfield,$field)=(split(/:/))[0,$fieldno];
65 print "dbfield='$dbfield' field='$field'\n";
66 &addtext($dbfield,$fields{$field}) if ( $field ne '' && \
$fields{$field});
67 }
with the following data:-
$
Hi Gary,
What are you expecting to print? I am assuming you want:
dbfield='pickno' field='PICKNO'
If so, you can a) make $fieldno=1, or remove that array slice off so you have:
my ($dbfield,$field)=(split(/:/))[0,$fieldno];
But, since the piece of the split you are looking for doesn't have a
On Thu, Apr 26, 2001 at 02:49:41PM +0100, Gary Stainburn wrote:
> Hi all,
>
> Using the following code:-
>
> 63 foreach (@fieldmap) {
> 64 my ($dbfield,$field)=(split(/:/))[0,$fieldno];
> 65 print "dbfield='$dbfield' field='$field'\n";
> 66 &addtext($dbfield,$fields{$field}) if ( $field n
42 matches
Mail list logo