Ing. Branislav Gerzo wrote:
> Hi all,
>
> recently I've updated perl on FreeBSD machine to latest, but my
> modules go away, they are not in @INC. I have 2 questions:
> 1. is there possibility update perl, without modules going away?
> 2. I have some perl CGIs on server, now I have 500 internal se
Ing. Branislav Gerzo wrote:
> Hi all,
>
> recently I've updated perl on FreeBSD machine to latest, but my
> modules go away, they are not in @INC. I have 2 questions:
> 1. is there possibility update perl, without modules going away?
> 2. I have some perl CGIs on server, now I have 500 internal se
Hi all,
recently I've updated perl on FreeBSD machine to latest, but my
modules go away, they are not in @INC. I have 2 questions:
1. is there possibility update perl, without modules going away?
2. I have some perl CGIs on server, now I have 500 internal server error
because some modules are m
Benjamin Jeeves wrote:
> Thank You Rob you have been a great help but work it out now
I'm glad to hear it. You might like to post your working version
for the group to look over. You will teach others something, and
you may find that people can make useful comments.
Well done Benjamin.
Rob
-
Thank You Rob you have been a great help but work it out now
On Monday 10 Feb 2003 2:39 pm, Benjamin Jeeves wrote:
> On Monday 10 Feb 2003 11:57 am, Rob Dixon wrote:
>
> Hope you do not mind in helping me out but have try what you put below with
> know luck. This is what I have do and try many wa
On Monday 10 Feb 2003 11:57 am, Rob Dixon wrote:
Hope you do not mind in helping me out but have try what you put below with
know luck. This is what I have do and try many ways
sub main_prog
{
my $counter = 0;
my $counter1 = 0;
$filepos = tell FILEIN;
for(;;)
{
Benjamin Jeeves wrote:
> It still add record that it found on the first pass though the while
> loop to my database what I need is some way to mark my file to the
> point that it get to so it will not find a dupluted of the some
> record as the file grows. ant ideas on how I do that.
It sounds as
It still add record that it found on the first pass though the while loop to
my database what I need is some way to mark my file to the point that it get
to so it will not find a dupluted of the some record as the file grows. ant
ideas on how I do that.
On Sunday 09 Feb 2003 8:30 pm, Rob Dixon
Rob Dixon wrote:
> ...(who taught you to Capitalise
> your scalars :-? )...
Huh?!? "Taught"?? Wuzzat mean--"taught"?
~( ;- |) )
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Rob Dixon wrote:
> sub alert
> {
> seek FILEIN, 0, SEEK_SET;
>
> while( )
Of course, that should be
while ()
> {
> # does some thing on pattern matching
> }
> }
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Benjamin Jeeves wrote:
> On Sunday 09 Feb 2003 7:23 pm, Rob Dixon wrote:
>>
>> I'm pretty sure that, as I said before, you're reading from the file
>> in several different places. The 'start' subroutiine will read the
>> first
>> line and then call 'build_db' which may well read all of the rest of
R. Joseph Newton wrote:
> Rob Dixon wrote:
>
>>> $filein = $ARGV[0];
>>> open(filein, "$filein");
>>
>> Filehandles are traditionally all uppercase, and it's not
>> good to put a variable in quotes unless you have a reason
>> to.
>>
>> open FILEIN, $filein;
>
> You're right, of course, about th
Benjamin Jeeves wrote:
> if I do not call build_db then alert will run fine as I want it to so
> is there away around this problem. See I need the FILEIN to go though
> a number of different sub routes how would I go about this.
Benjamin.
I'm pretty sure that, as I said before, you're reading fro
Rob Dixon wrote:
> > $filein = $ARGV[0];
> > open(filein, "$filein");
>
> Filehandles are traditionally all uppercase, and it's not
> good to put a variable in quotes unless you have a reason
> to.
>
> open FILEIN, $filein;
You're right, of course, about the quotes. It seems to me that this
Benjamin Jeeves,
You can probably figure this out. Try running the code below supplying
whatever file name you choose to save it as for an argument.
#!/usr/bin/perl -w
use strict;
my $filein = $ARGV[0];
print "$filein\n";
open(FILEIN, $filein);
my $counter = 0;
my $counter1;
&start;
sub start
if I do not call build_db then alert will run fine as I want it to so is there
away around this problem. See I need the FILEIN to go though a number of
different sub routes how would I go about this.
On Sunday 09 Feb 2003 4:39 pm, Benjamin Jeeves wrote:
> Can someone tell me why my call to bu
Benjamin Jeeves wrote:
> Can someone tell me why my call to build_db() works but when I call
> alert() it will not work as it calls alert but will not enter the
> while loop I my opening the file with
>
> #!/usr/bin/perl
Please add these lines here:
use strict;
use warnings;
as together
On Sun, Feb 09, 2003 at 04:39:00PM +, Benjamin Jeeves wrote:
>
> Can someone tell me why my call to build_db() works but when I call alert() it
> will not work as it calls alert but will not enter the while loop I my
> opening the file with
>
> #!/usr/bin/perl
>
> $filein = $ARGV[0];
> ope
Can someone tell me why my call to build_db() works but when I call alert() it
will not work as it calls alert but will not enter the while loop I my
opening the file with
#!/usr/bin/perl
$filein = $ARGV[0];
open(filein, "$filein");
sub start
{
for(;;)
{
while
Hi Mike,
Look at line 63 and the following line: Note the &amver; statement.
elsif ( $dir1 eq 'gaim' or $dir1 eq 'devilspie' ) &amver;
{
system (" ./autogen.sh --prefix=$prefix --sysconfdir=$sys --localstatedir=$local
$debug -
...
}
There are two problems with this:
1. Perl always requires brac
Hi
If you mean this error:
syntax error at E:\Perl\source\prob\build.pl line 63, near ") &"
then it's because the code to be executed after the elsif must be in a
block. I don't know what the logic of your program should be, but maybe
somethhing like this:
elsif ( $dir1 eq 'gaim' or $di
I have the attached sub in code.pl called in the attached build.pl
When I try to call it, I get an error thrown up
Anyone any idea what I am doing wrong?
sub amver {
open (AC1,"autogen1.sh") or die "no such file4";
@file1=;
foreach $file1(@file1) {
$file1=~s/aclocal/aclocal-1.5/g;
$file1=~s/aut
--- [EMAIL PROTECTED] wrote:
> Ok, I got sorta a hard question that involves
> calling randomly changing subroutines.
Hmm... instantanously the security alarm bell sounds.
> What I'm trying to do is this. 5 libaries are required
> into my CGI(PERL) program. Each of them has their own
> set of
On Jun 21, [EMAIL PROTECTED] said:
>home|&htmlBody,&Header,&homebody,&footer
>
>So it should get the list of subrutined to call but I can not figure out
>how to call them since they are strings and not hard coded into the
>code. Basicly I can get the values and print them out but not call
>them.
Ok, I got sorta a hard question that involves calling randomly changing
subrutines. What I'm Trying to do is this. 5 libaries are required into my CGI(PERL)
program Each of them has their own set of subrutines. Now when someone accesses my
site they also send a page referance eg "main.cgi?pag
25 matches
Mail list logo