[16281] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3693 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jul 17 14:05:34 2000

Date: Mon, 17 Jul 2000 11:05:15 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <963857115-v9-i3693@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Mon, 17 Jul 2000     Volume: 9 Number: 3693

Today's topics:
    Re: "Text file busy" error message <Martin.Jost@icn.siemens.de>
        $sth->{PrintError} and Huge Queries? jlsimms@my-deja.com
        $sth->{PrintError} and Large Queries? jlsimms@hotmail.com
    Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!! <russ_jones@rac.ray.com>
    Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!! <cal@iamcal.com>
        Best solution for this? anonmix@home.com  private.citizen  for the people by the people
    Re: Best solution for this? <skpurcell@hotmail.com>
        bless loses inheritance? up2l8@my-deja.com
    Re: Computing date + xxx days (Malcolm Ray)
        convert file permissions; octal-->stat ogiven@vertex.ucls.uchicago.edu
    Re: Difference between a .cgi file and a .pl file? <juex@deja.com>
        Extra Path Information in CGI <skpurcell@hotmail.com>
        Fast file reading (was Re: Trying to use an array as a  (Gary E. Ansok)
    Re: Flock unsupported on which systems? <nospam@nospam.com>
        Formatting html file (Horse Nuts)
        RE: From Dropdown to Variable - How To? <wmonk@documentsolutions.com>
        Help a newbie please?! suzbik@btinternet.com
    Re: Help a newbie please?! <mike.solomon@eps.ltd.uk>
    Re: Help a newbie please?! newsposter@cthulhu.demon.nl
        help: executing a WinNT process sanjay33@my-deja.com
        Https URL checking LWP simple lucap@my-deja.com
        I need some advice <dematos@my-deja.com>
    Re: Installing ActivePerl : Problem <tshinnic@io.com>
    Re: Is there a Perl bug list? <gellyfish@gellyfish.com>
        Metadot Perl portal software server <dguermeur@slb.com>
    Re: Net::FTP error:Bad arg length for Socket::unpack_so <nospam@nospam.com>
        Newbie - How can I set up a secure directory that is on (Liam)
    Re: Newbie needs help! <bart.lateur@skynet.be>
    Re: Newbie: iterated reading from file (Tony Balazs)
    Re: Out of Memory (file limit) (James McCallum)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 17 Jul 2000 19:58:51 +0200
From: Martin Jost <Martin.Jost@icn.siemens.de>
To: laurie@swanharbor.com
Subject: Re: "Text file busy" error message
Message-Id: <3973495B.330A21F2@icn.siemens.de>

[Follow-up set to comp.lang.perl.misc; this doesn't seem to be a
module-problem]

laurie@swanharbor.com wrote:
> 
> I'm configuring a guestbook CGI -- on running the script, I receive the
> following error message: "Text file busy".  I get the same error when I
> go in on Telnet and type the file name, however when I type perl before
> the file name everything seems to be fine.

"Text file busy" means your trying to overwrite a executable file
which is at that moment running.
So what is your script named ?
What does
which NAME-OF-YOUR-SCRIPT
say ? (It should report the full path to your script)

(I guess (without the 'perl ...' you start not your script but
something else.)

HTH

Martin


------------------------------

Date: Mon, 17 Jul 2000 17:13:58 GMT
From: jlsimms@my-deja.com
Subject: $sth->{PrintError} and Huge Queries?
Message-Id: <8kves2$19s$1@nnrp1.deja.com>

I am having an interesting problem to which I have found an even more
interesting solution.  The problem arose when I was trying to execute
extremely large queries (on the order of > 1.2 million characters) on
the database (mySQL).  Say I have a _very_ large query, that looks
something like this:

$sql = SELECT id, name from mytable where name IN ( name1, name2 ...
name1000000)

In my code, I can prepare it without a hitch:

$sth = $dbh->prepare($sql);

But when I go to execute it, doing a plain $sth->execute, it hangs...
The strange thing is that this query worked before, so I went to find
the difference in the old database code and my stuff.  The only
difference was that in the original code, before the execute() but after
the prepare(), I set $sth->{PrintError} to 0.

After inserting this single line of code that sets $sth->{PrintError} to
0, the huge query executed without a problem and returned a correct
result set.

Why would PrintError allow or not allow a large query to go through?  In
either case (whether PrintError is set to 1 or 0), smaller queries
execute fine.  The threshold is something around a length() of 1.2
million characters...  Any ingight?  Again, this is on mySQL 3.22.32 on
RedHat Linux, with the standard Perl DBI.

Jason Simms


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 17:11:22 GMT
From: jlsimms@hotmail.com
Subject: $sth->{PrintError} and Large Queries?
Message-Id: <8kven8$118$1@nnrp1.deja.com>

I am having an interesting problem to which I have found an even more
interesting solution.  The problem arose when I was trying to execute
extremely large queries (on the order of > 1.2 million characters) on
the database (mySQL).  Say I have a _very_ large query, that looks
something like this:

$sql = SELECT id, name from mytable where name IN ( name1, name2 ...
name1000000)

In my code, I can prepare it without a hitch:

$sth = $dbh->prepare($sql);

But when I go to execute it, doing a plain $sth->execute, it hangs...
The strange thing is that this query worked before, so I went to find
the difference in the old database code and my stuff.  The only
difference was that in the original code, before the execute() but after
the prepare(), I set $sth->{PrintError} to 0.

After inserting this single line of code that sets $sth->{PrintError} to
0, the huge query executed without a problem and returned a correct
result set.

Why would PrintError allow or not allow a large query to go through?  In
either case (whether PrintError is set to 1 or 0), smaller queries
execute fine.  The threshold is something around a length() of 1.2
million characters...  Any ingight?  Again, this is on mySQL 3.22.32 on
RedHat Linux, with the standard Perl DBI.

Jason Simms


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 10:01:30 -0500
From: Russ Jones <russ_jones@rac.ray.com>
Subject: Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!!
Message-Id: <39731FCA.3085C945@rac.ray.com>

Cal Henderson wrote:
> 
> "Drew Simonis" <care227@attglobal.net> wrote:
> 
> : I got excited when Kibo sent me email.  But I was far more excitable
> : then.
> 
> You got mail form kibo? wow.
> 

I bet it wasn't the One True Kibo. 

I got email from Fred Phelps once.

-- 
Russ Jones - HP OpenView IT/Operatons support
Raytheon Aircraft Company, Wichita KS
russ_jones@rac.ray.com 316-676-0747

Quae narravi, nullo modo negabo. - Catullus


------------------------------

Date: Mon, 17 Jul 2000 17:01:43 +0100
From: "Cal Henderson" <cal@iamcal.com>
Subject: Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!!
Message-Id: <q5Gc5.3105$Pj1.72615@news2-win.server.ntlworld.com>


"Russ Jones" <russ_jones@rac.ray.com> wrote...
:
: I bet it wasn't the One True Kibo.
:
: I got email from Fred Phelps once.
:

pah, Kibo rules


--
cal
www.iamcal.com




------------------------------

Date: Mon, 17 Jul 2000 15:20:15 GMT
From: anonmix@home.com  private.citizen  for the people by the people
Subject: Best solution for this?
Message-Id: <XFHF3YCM36724.4357638889@private.citizen>

What over the counter remedy is the best for butt fungus?




------------------------------

Date: Mon, 17 Jul 2000 12:46:52 -0500
From: "spurcell" <skpurcell@hotmail.com>
Subject: Re: Best solution for this?
Message-Id: <39734702$0$27161@wodc7nh1.news.uu.net>

java ...
<anonmix@home.com private.citizen for the people by the people> wrote in
message news:XFHF3YCM36724.4357638889@private.citizen...
> What over the counter remedy is the best for butt fungus?
>
>




------------------------------

Date: Mon, 17 Jul 2000 16:13:49 GMT
From: up2l8@my-deja.com
Subject: bless loses inheritance?
Message-Id: <8kvbbb$u9a$1@nnrp1.deja.com>

Hello,

I am trying to reconsecrate an object into
a new class (I'm trying to make a copy constructor...)
but it seems that when I re-bless the object it loses
all of the inheritance information.  I found that when
I call a simple function like so:

sub ima {
  return(@ISA);
}

The inheritance info seems to be read correctly.

ex.

  bless $o, $to_class;
  print "PASS\n" if ($o->isa("Netlist::Element"));
  print "IMA- ".join("\n\t", $o->ima)."\n";
  print "PASS, but weird!\n" if ($o->isa("Netlist::Element"));

Oddly enough this always prints the weird string, even though
I really didn't DO anything!

Does anyone have any ideas on this???

Using perl5.004_04 built for sun4-solaris

Thanks,

Eric


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: 17 Jul 2000 15:32:19 GMT
From: M.Ray@ulcc.ac.uk (Malcolm Ray)
Subject: Re: Computing date + xxx days
Message-Id: <slrn8n69o3.tfh.M.Ray@carlova.ulcc.ac.uk>

On Mon, 17 Jul 2000 02:50:32 GMT, jason <elephant@squirrelgroup.com> wrote:
>jhalbrook@my-deja.com wrote ..
>>I was curious if there is a quick and dirty way to perform
>>simple date math?  I simply need to add xxx number of days
>>to a given Gregorian date, and produce the resulting date.
>
>  perldoc -f time
>  perldoc -f localtime
>
>you want something like
>
>  @localtime = localtime( time + 24 * 3600 * $x );
>
>where $x is the number of days you want added .. used in a scalar 
>context it will output a string .. the docs tell all
>
>btw .. it's quick - but there's nothing dirty about it

Beware: in many (most?) locales, not every day is 24 hours long.
Think of daylight saving time, and consider what can happen to the
above code when used during a 25-hour day.
-- 
Malcolm Ray                           University of London Computer Centre


------------------------------

Date: Mon, 17 Jul 2000 15:51:27 GMT
From: ogiven@vertex.ucls.uchicago.edu
Subject: convert file permissions; octal-->stat
Message-Id: <8kva1m$t0s$1@nnrp1.deja.com>

I'm grabbing the permission info on a remote file via Net::FTP's dir
command.......then parsing the -rwxrwxrwx entry into octal form.  BUT i
then need to convert the octal num into the kind of num that stat
returns when it gives you a file mode, so that i can chmod the local
file from within my Perl script.

i know a bit shift sequence to convert file perms from the stat format
to octal (@modelist = (($mode&0700)>>6, ($mode&0070), ($mode&0007));),
but i don't know how to do the opposite: convert a file perm from octal
to the stat representation.........

can anyone suggest a way?
OR, since my knowledge of "bits" and such is sorely lacking, can anyone
point me to some documentation on the subject.  i've done a lot of
search engine/usenet querying, but i'm not turning up anything
relevant....

thanks,

Olivia


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 09:15:02 -0700
From: "Jürgen Exner" <juex@deja.com>
Subject: Re: Difference between a .cgi file and a .pl file?
Message-Id: <3973310c$1@news.microsoft.com>

"DS" <snakeman@kc.rr.com> wrote in message
news:vjmc5.94$L5.2310@typhoon.kc.rr.com...
> What is the diference betweeen a .pl file and a .cgi file?

The file extension?

> Can I convert a .pl to a .cgi?

'mv foobar.pl foobar.cgi' should do the job.

But maybe you wanted to ask what is the difference between a Perl file and a
CGI file?
Let's just say they have little in common. Many, many Perl programs are used
without any relation to CGI and CGI files can be programmed in any language,
Perl just being one among many.

jue




------------------------------

Date: Mon, 17 Jul 2000 12:45:58 -0500
From: "spurcell" <skpurcell@hotmail.com>
Subject: Extra Path Information in CGI
Message-Id: <397346cc$0$27161@wodc7nh1.news.uu.net>

Hello,
I was reading Steins book on CGI.pm and have been trying to use "Extra Path"
info in one of my scripts.

He states in his book, page 95, that  with a URL like this:
http://your.site/cgi-bin/random_pict2.pl/pictures
that this above converntional URL has extra path information. eg. the
/pictures. And that the actual script is the random_pic2.pl. And he mentions
that when the web server sees this URL that it scans from left to right
until it finds a valid CGI script. Which he says would be random_pict2.pl.
And that then he can pass the /pictures in as "extra Path info".

Anyway, I have jacked with this for quite some time, and I can't seem to get
it to work.
I set up a cgi-bin just like he has and made a simple .pl file called
random_pict2.pl.
And that works as long as I called it like
http://your.site/cgi-bin/random_pict2.pl
But as soon as I add the /pictures then I get burned.

Does anyone know how this "extra Path info" is suposed to work? It makes
sense how it works, but it don't work here.

Config: IIS
Active state Perl.

Thanks
Scott




------------------------------

Date: 17 Jul 2000 17:06:54 GMT
From: ansok@alumni.caltech.edu (Gary E. Ansok)
Subject: Fast file reading (was Re: Trying to use an array as a hash value)
Message-Id: <8kvefe$3vm@gap.cco.caltech.edu>

In article <slrn8muvn0.eq3.tadmc@magna.metronet.com>,
Tad McClellan <tadmc@metronet.com> wrote:
>On Fri, 14 Jul 2000 22:10:23 +0000, rhys <rhys.tucker@dtn.ntl.com> wrote:
>
>>slurp up a file into an array -	@message = <MESSAGE>; and use this
>>somehow.
>>
>>I've been wondering that the solution may be to slurp up the file into a
>>scalar variable somehow?. 
>
>
>   my $message;
>   { 
>      local $/;                # undef is slurp mode
>      $message = <MESSAGE>;    # the whole file in a single scalar
>   }

I did some benchmarking a while ago, and while I've misplaced the timing
data, I found that the fastest way to read an entire file (on both Solaris 
and NT systems that I had access to) was

my $message;
binmode MESSAGE;               # if your algorithm doesn't mind \r
sysread MESSAGE, $message, -s MESSAGE;

binmode made a huge difference on my Windows NT machine -- assuming your
processing doesn't mind the \r characters.  In my case, I was using
\s+ for all whitespace matching and didn't care at all about lines, 
so \r\n was equivalent to \n.  (If you binmode your input, remember 
you'll probably need to binmode your output as well.)

sysread was a minor win (compared to read) on Solaris, and negligible on
NT.  Even read() was faster than using <> to slurp the file, though the
sysread/read/<> difference wasn't that large.

My input files were about 20K -- your mileage may vary, particularly
for much smaller or larger files.  This was not done in a CGI environment.

-- 
Gary Ansok


------------------------------

Date: 17 Jul 2000 15:18:59 GMT
From: The WebDragon <nospam@nospam.com>
Subject: Re: Flock unsupported on which systems?
Message-Id: <8kv853$1c7$3@216.155.32.56>

In article <8knf23$dle$1@geraldo.cc.utexas.edu>, Todd Gillespie 
<toddg@linux45.ma.utexas.edu> wrote:

 | Hi, I'm recoding a few scripts to work on an indefinite number of 
 | systems; right now I'm using flock to
 | control access to the data files, but a co-worker told me that flock 
 | isn't supported on several
 | OS'es.  I didn't find evidence of that in the documentation. (Is there a 
 | perldoc called 'things perl
 | passes to the OS, which will screw you over'?)
 | 
 | So does anyone here know a) better docs, or b) unsupported systems?

flock(); is unsupported on the current version of MacPerl (which problem 
will definitely go away with MacOS X (since it will run perl natively), 
and may possibly go away with the next release of MacPerl (if and when 
it gets released .. current version (520r4) is essentially 5.004)

there ARE however, file-locking mechanisms specific to MacOS that CAN be 
used with MacPerl and a simple test to determine whether one is running 
under MacOS or not. 

hopefully this disparity will be corrected in the next release for those 
of us eho use older systems. :)

-- 
send mail to mactech (at) webdragon (dot) net instead of the above address. 
this is to prevent spamming. e-mail reply-to's have been altered 
to prevent scan software from extracting my address for the purpose 
of spamming me, which I hate with a passion bordering on obsession.  


------------------------------

Date: Mon, 17 Jul 2000 15:14:42 GMT
From: hx_101@hotmail.com (Horse Nuts)
Subject: Formatting html file
Message-Id: <397321bc.2277244@news.dal.ca>

sample file:
<TR><TD><a href="HTTP://XXX.XX.XXX/XX">AAA BB</a>
</td><TD>NAME</td></tr><br>

I have a simple html file, I would like to change ONLY the
HTTP://XXX.XX.XXX/XX to lower case in a file. There could be hundreds
of links in this file, is it possible??

Thanks


------------------------------

Date: Mon, 17 Jul 2000 10:19:37 -0500
From: Wes Monk <wmonk@documentsolutions.com>
To: comp.lang.perl.misc@list.deja.com
Subject: RE: From Dropdown to Variable - How To?
Message-Id: <8B3D54839644D411947B00B0D03D31810CFA62@BHMMAIL1>

You will need to use javascript to manipulate the HTML page once it hits the
client.

-----Original Message-----
From: mandbinc@rocketmail.com [mailto:mandbinc@rocketmail.com]
Sent: Thursday, July 13, 2000 10:05 AM
To: comp.lang.perl.misc@list.deja.com
Subject: From Dropdown to Variable - How To?


 Message from the Deja.com forum: 
 comp.lang.perl.misc
 Your subscription is set to individual email delivery
 This message was sent to wmonk@documentsolutions.com
 Deja.com: Best way to buy a PC
 http://www.deja.com/channels/channel.xp?CID=13031

I have a HTML web page with a variable at the end of some text, say
$help.

On this SAME page there is a dropdown box where users can select
different text options.  I want to take the value they select and move
it to some TEXT on a different part of the SAME HTML page (take it to
the place where $help is).

Once a value is selected in the dropdown, I plan on calling a PERL file
that assigns the selected value to the variable $help (I think I can
figure this one out).

How do I then return that value (now assigned to $help) to the $help
variable in the TEXT on the SAME HTML page (with the SAME HTML file
name)?

Or if someone has a suggestion on an easier way to do this, please let
me know.

Thank you for your time.


Sent via Deja.com http://www.deja.com/
Before you buy.



 _____________________________________________________________
 Deja.com: Before you buy.
 http://www.deja.com/
 * To modify or remove your subscription, go to
 http://www.deja.com/edit_sub.xp?group=comp.lang.perl.misc
 * Read this thread at
 http://www.deja.com/thread/%3C8kksqi%24mms%241%40nnrp1.deja.com%3E


 Sent via Deja.com http://www.deja.com/
 Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 15:06:20 GMT
From: suzbik@btinternet.com
Subject: Help a newbie please?!
Message-Id: <8kv7cu$qun$1@nnrp1.deja.com>

Hello,

I have been working on this script but i cannot get it to work
properly.

The idea is that the customer enters their reference number and
password and the script looks it up from a flat file database.

The problem is that when i type in a reference number it will only find
the details if the reference number is 10233 (which is the first row)
if i try others then it doesnt work.

can someone tell me why?

The script is at: http://www.neighbourscan.co.uk/cgi-bin/check.pl
To see what it should look like enter 10233 as the ref number and the
passwod doesnt matter as i have not made it check that yet.

The code is at: http://www.neighbourscan.co.uk/check.txt
and the database is at: http://www.neighbourscan.co.uk/check-db.txt

Thankyou

Ben Periton


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 16:52:40 +0100
From: "mike solomon" <mike.solomon@eps.ltd.uk>
Subject: Re: Help a newbie please?!
Message-Id: <8kva75$39slb$1@ID-36965.news.cis.dfn.de>

why post this twice ?

if you want help it would be nice if you posted the code you need help with


Regards

Mike Solomon


<suzbik@btinternet.com> wrote in message news:8kv7cu$qun$1@nnrp1.deja.com...
> Hello,
>
> I have been working on this script but i cannot get it to work
> properly.
>
> The idea is that the customer enters their reference number and
> password and the script looks it up from a flat file database.
>
> The problem is that when i type in a reference number it will only find
> the details if the reference number is 10233 (which is the first row)
> if i try others then it doesnt work.
>
> can someone tell me why?
>
> The script is at: http://www.neighbourscan.co.uk/cgi-bin/check.pl
> To see what it should look like enter 10233 as the ref number and the
> passwod doesnt matter as i have not made it check that yet.
>
> The code is at: http://www.neighbourscan.co.uk/check.txt
> and the database is at: http://www.neighbourscan.co.uk/check-db.txt
>
> Thankyou
>
> Ben Periton
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.




------------------------------

Date: 17 Jul 2000 16:05:04 GMT
From: newsposter@cthulhu.demon.nl
Subject: Re: Help a newbie please?!
Message-Id: <8kvarg$ncm$1@internal-news.uu.net>

suzbik@btinternet.com wrote:

> The problem is that when i type in a reference number it will only find
> the details if the reference number is 10233 (which is the first row)
> if i try others then it doesnt work.

> can someone tell me why?

  Your code checks the first row, and if that one does not match it
calls the 'error' function. I assume you want to check _all_ rows
before deciding there is an 'error'.

Btw, the /cgi-bin/check.pl script shows up as source code in my browser,
and without flash your site is unusable.

Erik



------------------------------

Date: Mon, 17 Jul 2000 15:51:33 GMT
From: sanjay33@my-deja.com
Subject: help: executing a WinNT process
Message-Id: <8kva1s$t11$1@nnrp1.deja.com>



I am trying to run a program on NT through my perl scripy using the
'system` command

ie,

system("c:/my files/test.exe");

The problem is caused by the space in the direcroty name which WinNT
allows. The shell complains about this call saying that it is not
recognised as an executable program.

Can anyone tell me how to solve it?

thanks
sanjay


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 16:46:17 GMT
From: lucap@my-deja.com
Subject: Https URL checking LWP simple
Message-Id: <8kvd8j$vri$1@nnrp1.deja.com>



i'm using LWP:simple for a quick url  check:

if (head($url)) {

		...
	}

I just found that this does not accept https addresses,

any workarounds ?


Thanks, ciao


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 15:38:02 GMT
From: Filipe de Matos <dematos@my-deja.com>
Subject: I need some advice
Message-Id: <8kv98n$sd8$1@nnrp1.deja.com>

Hi all,

I´m working for a german Company as SysAdmin.
On the intranet there are 40 workstations (Linux/HP-UX/Windows)
that have access to a so called "Information server" placed behind
a Apache Webserver. This are a bunch of information that have been
growing significantly in the last time.
At the beginning i started to write some CGI scripts, accessing
PostgreSQL that´s where all the data is stored. The only modules
that í´ve looked for were Postgres.pl and CGI-Perl.
But soon i´ve realized that this scripts are very difficult to maintain.
On the one side the Database queries, on the other side the HTML
processing and output.

Now i´m looking for some way to separate the perl code from the HTML
as much as possible.
I´ve been reading about "HTML::Template", "embPerl", "ePerl", etc...
but i don´t have any experience with any of them. Something that isn´t
obvious to me is if i still can write my code with "normal" perl
tags or if i only can use a set of module specific language elements.
Still i can call other modules like Postgres.PL to access my database
from inside of this scripts (or even from inside embedded perl)?
If you´ve already done something similar, your advice would be helpful.
Which one is the best option for this kind of projects ?

Thank you guys

Matos


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Mon, 17 Jul 2000 11:39:36 -0500
From: Thomas L. Shinnick <tshinnic@io.com>
Subject: Re: Installing ActivePerl : Problem
Message-Id: <g7d6nsosvv7qosbt0pnaunt199h3qg12lj@4ax.com>

On Mon, 17 Jul 2000 16:16:01 +0200, Jan Buys <jan.buys@mcd.alcatel.be> wrote:
>Hi all,
>
>I'm trying to install ActivePerl (which I downloaded from the official
>Activestate site), but I cannot get the MS Windows installer to work,
>which is needed to install the .msi file to which the perl distribution
>is packed.
>Anyone with the same problem, and ... eh ... solution of course ?

And the error messages/symptoms were?  The version of ActivePerl was?
And the windows version was which (95/98/NT/2000) ?

Might your problem have anything to do with the following third paragraph
on the AS download page:
    Windows Users: This installation requires the version 1.1 or
    greater of the Windows Installer.  Download it here for
    Windows NT or Windows 95/98.  Windows 2000 users do not
    need this file since they already have the Windows
    Installer installed.
I ran into this on NT4.0, so you might also.  The referenced links were:
  http://www.activestate.com/download/contrib/Microsoft/NT/InstMsi.exe
  http://www.activestate.com/download/contrib/Microsoft/9x/InstMsi.exe
>
>Thanks in advance...


-- 
I'm a pessimist about probabilities; I'm an optimist about possibilities.
    Lewis Mumford


------------------------------

Date: Mon, 17 Jul 2000 15:47:52 GMT
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Is there a Perl bug list?
Message-Id: <IUFc5.264$Px6.23969@news.dircon.co.uk>

On Mon, 17 Jul 2000 03:15:41 GMT, Mark Lewis Wrote:
> 
> Jonathan Stowe wrote in message <8ksbpn$av5$1@orpheus.gellyfish.com>...
>>On Sun, 16 Jul 2000 03:18:58 GMT Mark Lewis wrote:
>>> Hello,
>>>
>>> Where can a comprehensive list of confirmed Perl bugs be found? The
> only
>>> thing I have be able to find is an outdated list at perl.com.
>>>
>>
>><http://bugs.perl.org> at a guess ...
>>
> 
> 
> This seems to be what I'm looking for. I went to this website and tried
> the database form with no luck. No matter what I enter in the form,
> submitting the form results in a blank database form being returned. The
> help info at the site doesn't help.
> 
> Can anyone instruct me as to how to use the database search form at
> bugs.perl.org?
> 

But an asterisk in the subject field and press query ....


/J\


------------------------------

Date: Mon, 17 Jul 2000 10:42:00 -0500
From: "Daniel" <dguermeur@slb.com>
Subject: Metadot Perl portal software server
Message-Id: <HRFc5.94161$t91.629568@news4.giganews.com>

For those looking for a easy to use Perl free open source poprtal solution
look at Metadot Portal Server.
It features a dashboard, online discussion, content management and more.
It's written in Perl on top of MySQL, mod_perl and Apache.

http://www.metadot.com

--
Daniel




------------------------------

Date: 17 Jul 2000 15:08:26 GMT
From: The WebDragon <nospam@nospam.com>
Subject: Re: Net::FTP error:Bad arg length for Socket::unpack_sockaddr_in
Message-Id: <8kv7ha$1c7$2@216.155.32.56>

In article <8kn6kf$75l$1@cnn.Princeton.EDU>, zhangy@yuma.Princeton.EDU 
(Yu Zhang) wrote:

 | $ftp = Net::FTP->new("edcftp.cr.usgs.gov")||die;
 | $ftp->login("anonymous","zhangy\@princeton.edu")||die;

I don't know the full answer to your question, however I can point out a 
small tidbit. :) 

1 - if you use '' you won't have to escape chars
2 - always print the result of the die (with $!) so you KNOW what 
happened 

$ftp->login('anonymous','nowhere@loopback.edu')||die("YourErrMsg  $!");

-- 
send mail to mactech (at) webdragon (dot) net instead of the above address. 
this is to prevent spamming. e-mail reply-to's have been altered 
to prevent scan software from extracting my address for the purpose 
of spamming me, which I hate with a passion bordering on obsession.  


------------------------------

Date: Mon, 17 Jul 2000 16:05:55 GMT
From: lkenny@fisheries.org (Liam)
Subject: Newbie - How can I set up a secure directory that is only accessib;le through a cgi password script?
Message-Id: <39732e21.11882727@news.volocom.net>

I am tryoing to set up a password protected 'Members Only' section.
I have written the script and gotten that together.  But I am
uncertain on how to make a directory only accessible through the
perl-cgi script.

This may not be a definite perl question, it may be an html issue on
the directory side.  I'm not sure.  If it isn't, I would appreciate
any helpful direction you can point me in to resolve this issue.

Thank you in advance for any help you can offer,

Liam


------------------------------

Date: Mon, 17 Jul 2000 18:17:51 +0200
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Newbie needs help!
Message-Id: <46b6nss22ptstfa2etfj01msavv27uvscf@4ax.com>

Jim Mauldin wrote:

>> >($link, $descr) = /\[(.*?)]/g;
>> >
>> Yes, but then you'll get the brackets included in $link and
>> $descr.
>>
>
>Not so.  perldoc perlop, and try it on $_ = "[www.perl.org]\t[A Perl site]";
>It only returns what's inside the ( ) after matching the whole expression.

Aren't people paying attention, or what?!?!

Keith simple pointed out that if you drop the parents in the above,

	($link, $descr) = /\[.*]/g;

*then* the square brackets will be included in the results, just as with

	($link, $descr) = /(\[.*])/g;

-- 
	Bart.


------------------------------

Date: Mon, 17 Jul 2000 16:02:54 GMT
From: tbalazs-this-must-go@netcomuk.co.uk (Tony Balazs)
Subject: Re: Newbie: iterated reading from file
Message-Id: <39732dd7.28931203@1.0.0.119>


>>#!/usr/bin/perl -w
>>use strict;
>>
>>open(UPDATE, "update.dat");
>>
>>my $i = 1;
>>
>>while (my $data = <UPDATE>){
>>	chomp ($data);
>>	$data =~ s/^\((.*)\);/$1/g;
>>	my @data = split /,/, $data;
>>	foreach (@data)
>>	{
>>		print "text" . $i++ . " $_ ";
>>	}
>>	print "\n";
>>	$i = 1;
>>}
>>close(UPDATE);
>>
>>I'm getting the following error message:
>>global symbol "@data" requires explicit package name at filename.pl
>>line 8.
>
>Are you sure the code producing the error is *exactly* the code you quote
>above? I just copied and pasted it and it works. That error would pop up
>if there was no "my" before @data, but there is. Something else wrong
>with my script, though, I forgot to take care of those comments in your
>data. You need to add this line...
>
>$data =~ s/#.*$//;
>
>...right after the chomp.
>
>Bernard
<snip>
Whoops!  My mistake.

Tony.


------------------------------

Date: Mon, 17 Jul 2000 15:13:48 GMT
From: james.mccallum@bradford.gov.uk (James McCallum)
Subject: Re: Out of Memory (file limit)
Message-Id: <3973204e.26166939@newscore.theplanet.net>

I've now found the limit is coming from a file
I'm feeding into the script as follows.
Its the file /list

open (C,"/list");
while (<C>) {
 ($name,$address) = split(/,/);
 $address =~ s/\n//;
 if (!/x400/) {
 print REC "3100".("\035"x8)."1"."\035";
 }
}
close (C);

Does anyone know what limits the file that I can feed in?

>Hi,
>I'm running a perl script and I'm getting the
>message 'out of memory'
>I've check my ulimit which is currently set
>at 2097151 which should be buckets of
>space for files.  Anyone any thoughts??
>James



------------------------------

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 3693
**************************************


home help back first fref pref prev next nref lref last post