[15861] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3274 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jun 7 06:10:28 2000

Date: Wed, 7 Jun 2000 03:10:17 -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: <960372616-v9-i3274@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Wed, 7 Jun 2000     Volume: 9 Number: 3274

Today's topics:
        Running a Batch file via cgi-bin robdno@my-deja.com
    Re: Running a Batch file via cgi-bin <c4jgurney@my-deja.com>
        shell command cess23@my-deja.com
    Re: shell command <michael_roper@hotmail.com>
    Re: Simple regexp question (Bart Lateur)
        split line like "a","b","c" (Bryan Thomas)
    Re: split line like "a","b","c" (Iain Chalmers)
    Re: split line like "a","b","c" (Rafael Garcia-Suarez)
    Re: split line like "a","b","c" <michael_roper@hotmail.com>
    Re: split line like "a","b","c" (Villy Kruse)
    Re: split line like "a","b","c" (Bart Lateur)
    Re: split line like "a","b","c" (Iain Chalmers)
    Re: split line like "a","b","c" (Iain Chalmers)
    Re: split line like "a","b","c" (Iain Chalmers)
    Re: the end of perl? (Philip 'Yes, that's my address' Newton)
    Re: the end of perl? (Bart Lateur)
    Re: Tr vs. tr !@#@!#$@#% (brian d foy)
    Re: using 'exists' in a program to test for keys in a h (Anno Siegel)
    Re: Value of <HANDLE> construct can be "0" ??? (Bart Lateur)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Wed, 07 Jun 2000 08:39:41 GMT
From: robdno@my-deja.com
Subject: Running a Batch file via cgi-bin
Message-Id: <8hl1oc$ift$1@nnrp1.deja.com>

How do i run a batch file from my cgi-bin?
i've tried using the following code:
--------------------------------------------
    #!C:\perl\5.00503\bin\perl
    print "Content-type: text/plain\n\n";

    $var = 'e:\jrun\stop.bat';

    system($var);

    print "Server Stopped";
---------------------------------------------
this works fine if i run it as a standalone perl file from the command
prompt, but if i run it through the cgi-bin it does not work?
Does anyone have any ideas?
regards,
rob


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


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

Date: Wed, 07 Jun 2000 08:52:00 GMT
From: Jeremy Gurney <c4jgurney@my-deja.com>
Subject: Re: Running a Batch file via cgi-bin
Message-Id: <8hl2fc$itm$1@nnrp1.deja.com>

In article <8hl1oc$ift$1@nnrp1.deja.com>,
  robdno@my-deja.com wrote:
> How do i run a batch file from my cgi-bin?
> i've tried using the following code:

Which sounds very much like a CGI question to me .. best asked and
answered in comp.infosystems.www.authoring.cgi

>     $var = 'e:\jrun\stop.bat';

Would e: be a network drive? Try placing it on c: and have another go.
If you're on NT you really should run it as a .cmd file rather than a
 .bat

Jeremy Gurney
SAS Systems Analyst  |  Protherics Molecular Design Ltd.
"When everything is coming your way, you're in the wrong lane."


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


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

Date: Wed, 07 Jun 2000 07:34:14 GMT
From: cess23@my-deja.com
Subject: shell command
Message-Id: <8hkttm$fr1$1@nnrp1.deja.com>

Hi all.  Good day!

I am actually new with Perl/CGI. And I have a project to finish.
I have a problem with my script. My script goes something like this:

#!/usr/bin/perl
# result.cgi

print "Content-type: text/html\n\n";
$result = `/sbin/dev -l /dev/sda`;
print "This is the result:: $result\n";
 .
 .
 .
 .


when i try to run this in my browser, only this can be shown,
"This is the result:: "   ...$result doesn't give any value.

i tried looking at the error log, it says there;
"Cannot open /dev/sda"

but i tried running it in shell command line:  ./result.cgi
this is the result::
Disk /dev/sda: 255 heads, 63 sectors, 1111 cylinders
 .....
 ..... and etc....

it would mean that /dev/sda can be seen. I need to see those data
produced by that command.  But why is it that when I run it in the
browser, it cannot see /dev/sda.  And I need to run it thru a browser.

Am I missing some configurations here?

My other scripts without such shell sommand is working well.

I would really appreciate it if you can help me with this problem. I
tried using "exec", "system" & "syscall" but it will just produce the
same result.

Thanks in advance.


from someone who desperately needs help


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


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

Date: Wed, 7 Jun 2000 17:54:40 +1000
From: "Michael Roper" <michael_roper@hotmail.com>
Subject: Re: shell command
Message-Id: <8hkv0f$l66$1@metro.ucc.usyd.edu.au>

> when i try to run this in my browser, only this can be shown,
> "This is the result:: "   ...$result doesn't give any value.
>
> i tried looking at the error log, it says there;
> "Cannot open /dev/sda"
>
> but i tried running it in shell command line:  ./result.cgi
> this is the result::
> Disk /dev/sda: 255 heads, 63 sectors, 1111 cylinders
> .....
> ..... and etc....
>
> it would mean that /dev/sda can be seen. I need to see those data
> produced by that command.  But why is it that when I run it in the
> browser, it cannot see /dev/sda.  And I need to run it thru a browser.
If you change file permissions for /dev/sda (eg chmod a+rx /dev/sda in
shell) this problem should go away.

(I had this problem myself once. After banging my head for far too long I
found out that the file permissions were wrong.....Aarghh! CGI processes
dont log in as you so dont have your file permissions ... Doh!)

Hope this is a help.

-Michael




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

Date: Wed, 07 Jun 2000 08:47:01 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Simple regexp question
Message-Id: <394408cf.6313518@news.skynet.be>

Ryan & Treena Carrier wrote:

>As far as I know, if you want to include the dollar sign, you must put a
>backslash \ before it:
>$vbl = "\$INTERNAL";
>
>Please correct me if I'm wrong.

You're wrong.  :-)

Actually, conceptually, you're right. But if you do it like you did, in
a double-quotish string, the backslash will be used to escape the dollar
sign and disappear. It prevents putting the contents of the variable
$INTERNAL in the string.

You want the backslash to appear in the *final* string, because it will
have to escape the dollar sign in the *regex*.

If you do:
	print $vbl;

it should print:

	\$INTERNAL

Now, there are several ways to achieve this. Larry Rosler described a
few. I'll try to give a more complete list:

	$re = "\\\$INTERNAL";
	$re = '\\$INTERNAL';  # '\\' is  single backslash
	$re = '\$INTERNAL';  
	    # '\$' is not special in single quoted strings
	$re = quotemeta('$INTERNAL');
	$string = '$INTERNAL'; $re = "\Q$string";

all with /$re/.

	print $re;

should print

	\$INTERNAL

in all cases.

Or, alternatively:

	$vbs = '$INTERNAL';
	/\Q$vbs/
	
-- 
	Bart.


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

Date: Wed, 07 Jun 2000 05:28:10 GMT
From: bryan.d.thomas@usa.net (Bryan Thomas)
Subject: split line like "a","b","c"
Message-Id: <393ddb49.216520199@news.jps.net>

I'm using Perl 5.6 on Win32.

I have a file with lines that look like

"a","b","c"\n

I want to split these into different variables, something like

while <> {
($a, $b, $c) = split /,/;
}

but this leaves me with "a" in $a, "b" in $b, and "c" in $c.

I'd like to do something besides

foreach $x ($a,$b,$c) { s/"/$x/;}

to get rid of the quotes.  Ideally, I could do something to $_ to keep
the quotes from going into the variables.

Thanks in advance,

Bryan


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

Date: Wed, 07 Jun 2000 16:05:20 +1000
From: bigiain@mightymedia.com.au (Iain Chalmers)
Subject: Re: split line like "a","b","c"
Message-Id: <bigiain-0706001605200001@bigman.mighty.com.au>

In article <393ddb49.216520199@news.jps.net>, bryan.d.thomas@usa.net
(Bryan Thomas) wrote:

>I'm using Perl 5.6 on Win32.
>
>I have a file with lines that look like
>
>"a","b","c"\n
>
>I want to split these into different variables, something like
>
>while <> {
>($a, $b, $c) = split /,/;
>}
>
>but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>
>I'd like to do something besides
>
>foreach $x ($a,$b,$c) { s/"/$x/;}
>
>to get rid of the quotes.  Ideally, I could do something to $_ to keep
>the quotes from going into the variables.
>

how certain are you of the data format?

how 'bout

while <> {
s/"//g;
($a, $b, $c) = split /,/;
}

big


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

Date: Wed, 07 Jun 2000 06:35:04 GMT
From: garcia_suarez@hotmail.com (Rafael Garcia-Suarez)
Subject: Re: split line like "a","b","c"
Message-Id: <slrn8jrrfm.7no.garcia_suarez@rafael.kazibao.net>

Bryan Thomas wrote in comp.lang.perl.misc:
>I'm using Perl 5.6 on Win32.
>
>I have a file with lines that look like
>
>"a","b","c"\n
>
>I want to split these into different variables, something like
>
>while <> {
>($a, $b, $c) = split /,/;
>}
>
>but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>
>I'd like to do something besides
>
>foreach $x ($a,$b,$c) { s/"/$x/;}
>
>to get rid of the quotes.  Ideally, I could do something to $_ to keep
>the quotes from going into the variables.

You can use map:
  while (<>) {
    ($a,$b,$c) = map { /([^"]*)/; $1 } split /,/;
  }


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

Date: Wed, 7 Jun 2000 18:09:12 +1000
From: "Michael Roper" <michael_roper@hotmail.com>
Subject: Re: split line like "a","b","c"
Message-Id: <8hkvrk$lnk$1@metro.ucc.usyd.edu.au>

> "a","b","c"\n
>
> I want to split these into different variables, something like
>
> while <> {
> ($a, $b, $c) = split /,/;
> }
>
> but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>
> I'd like to do something besides
>
> foreach $x ($a,$b,$c) { s/"/$x/;}
>
> to get rid of the quotes.  Ideally, I could do something to $_ to keep
> the quotes from going into the variables.

while (<>) {
  ($a,$b,$c) = map {s/"//g; $_} split /,/;
 }

Michael





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

Date: 7 Jun 2000 08:49:09 GMT
From: vek@pharmnl.ohout.pharmapartners.nl (Villy Kruse)
Subject: Re: split line like "a","b","c"
Message-Id: <slrn8js345.id.vek@pharmnl.ohout.pharmapartners.nl>

On Wed, 7 Jun 2000 18:09:12 +1000,
         Michael Roper <michael_roper@hotmail.com> wrote:



>> "a","b","c"\n
>>
>> I want to split these into different variables, something like
>>
>> while <> {
>> ($a, $b, $c) = split /,/;
>> }
>>
>> but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>>
>> I'd like to do something besides
>>
>> foreach $x ($a,$b,$c) { s/"/$x/;}
>>
>> to get rid of the quotes.  Ideally, I could do something to $_ to keep
>> the quotes from going into the variables.
>
>while (<>) {
>  ($a,$b,$c) = map {s/"//g; $_} split /,/;
> }
>
>Michael
>
>

Also check the module Text::ParseWords.  This will also be able to split
this correctly:

"def", 123, "this is a text with spaces"

Villy


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

Date: Wed, 07 Jun 2000 08:47:06 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: split line like "a","b","c"
Message-Id: <39450949.6434958@news.skynet.be>

Bryan Thomas wrote:

>I have a file with lines that look like
>
>"a","b","c"\n
>
>I want to split these into different variables, something like
>
>while <> {
>($a, $b, $c) = split /,/;
>}
>
>but this leaves me with "a" in $a, "b" in $b, and "c" in $c.

Can the stuff between quotes contain comma's? In that case, a simple
split won't do. Besides, you forgot chomp(). Your last field will be
"c"\n not "c".

Anyway, I like:

	s/^"// and /"$//;

which will only attempt to delete a final quote, if the string started
with a quote (which got deleted too).

And for the "comma inside the quotes" problem, look at the FAQ,
perlfaq4:

   How can I split a [character] delimited string except when inside
   [character]? (Comma-separated files)

-- 
	Bart.


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

Date: Wed, 07 Jun 2000 18:46:19 +1000
From: bigiain@mightymedia.com.au (Iain Chalmers)
Subject: Re: split line like "a","b","c"
Message-Id: <bigiain-0706001846190001@bigman.mighty.com.au>

In article <slrn8jrrfm.7no.garcia_suarez@rafael.kazibao.net>,
garcia_suarez@hotmail.com (Rafael Garcia-Suarez) wrote:

>Bryan Thomas wrote in comp.lang.perl.misc:
>>I'm using Perl 5.6 on Win32.
>>
>>I have a file with lines that look like
>>
>>"a","b","c"\n
>>
>>I want to split these into different variables, something like
>>
>>while <> {
>>($a, $b, $c) = split /,/;
>>}
>>
>>but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>>
>>I'd like to do something besides
>>
>>foreach $x ($a,$b,$c) { s/"/$x/;}
>>
>>to get rid of the quotes.  Ideally, I could do something to $_ to keep
>>the quotes from going into the variables.
>
>You can use map:
>  while (<>) {
>    ($a,$b,$c) = map { /([^"]*)/; $1 } split /,/;
>  }

Which is really the same as the foreach fix, but with a more complicated
regex...

I suggest stripping the quotes before the split - that way you only need
to use the regex once, not three times (or maybe 26 times if his data
really goes "a","b",...,"z"\n)

use Benchmark;

    timethese(1000000, {
        'map' => sub{$_='"a","b","c"';
                     ($a,$b,$c) = map { /"([^"]*)/; $1 } split /,/;},
        'foreach' => sub{$_='"a","b","c"';
                         ($a,$b,$c) = split /,/;
                         foreach $x ($a,$b,$c) { s/"/$x/;}},
        'regex' => sub{$_='"a","b","c"';
                           s/"//g;
                           ($a,$b,$c) = split /,/;},
    });


Benchmark: timing 1000000 iterations of foreach, map, regex...
   foreach: 42 secs (42.20 usr  0.00 sys = 42.20 cpu)
       map: 50 secs (49.95 usr  0.00 sys = 49.95 cpu)
     regex: 23 secs (23.52 usr  0.00 sys = 23.52 cpu)



big

-- 
"But I think that's a cool feature. No formal definition
of the language means Perl is defined by what perl does. Ergo, perl
is a perfect, bug-free Perl interpreter. :)" - Simon Cozens in clpm


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

Date: Wed, 07 Jun 2000 19:01:30 +1000
From: bigiain@mightymedia.com.au (Iain Chalmers)
Subject: Re: split line like "a","b","c"
Message-Id: <bigiain-0706001901300001@bigman.mighty.com.au>

In article <slrn8jrrfm.7no.garcia_suarez@rafael.kazibao.net>,
garcia_suarez@hotmail.com (Rafael Garcia-Suarez) wrote:

>Bryan Thomas wrote in comp.lang.perl.misc:
>>I'm using Perl 5.6 on Win32.
>>
>>I have a file with lines that look like
>>
>>"a","b","c"\n
>>
>>I want to split these into different variables, something like
>>
>>while <> {
>>($a, $b, $c) = split /,/;
>>}
>>
>>but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>>
>>I'd like to do something besides
>>
>>foreach $x ($a,$b,$c) { s/"/$x/;}
>>
>>to get rid of the quotes.  Ideally, I could do something to $_ to keep
>>the quotes from going into the variables.
>
>You can use map:
>  while (<>) {
>    ($a,$b,$c) = map { /([^"]*)/; $1 } split /,/;
>  }

Which is really the same as the foreach fix, but with a more complicated
regex...

I suggest stripping the quotes before the split - that way you only need
to use the regex once, not three times (or maybe 26 times if his data
really goes "a","b",...,"z"\n)

use Benchmark;

    timethese(1000000, {
        'map' => sub{$_='"a","b","c"';
                     ($a,$b,$c) = map { /"([^"]*)/; $1 } split /,/;},
        'foreach' => sub{$_='"a","b","c"';
                         ($a,$b,$c) = split /,/;
                         foreach $x ($a,$b,$c) { s/"/$x/;}},
        'regex' => sub{$_='"a","b","c"';
                           s/"//g;
                           ($a,$b,$c) = split /,/;},
    });


Benchmark: timing 1000000 iterations of foreach, map, regex...
   foreach: 42 secs (42.20 usr  0.00 sys = 42.20 cpu)
       map: 50 secs (49.95 usr  0.00 sys = 49.95 cpu)
     regex: 23 secs (23.52 usr  0.00 sys = 23.52 cpu)



big

-- 
"But I think that's a cool feature. No formal definition
of the language means Perl is defined by what perl does. Ergo, perl
is a perfect, bug-free Perl interpreter. :)" - Simon Cozens in clpm


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

Date: Wed, 07 Jun 2000 19:05:27 +1000
From: bigiain@mightymedia.com.au (Iain Chalmers)
Subject: Re: split line like "a","b","c"
Message-Id: <bigiain-0706001905270001@bigman.mighty.com.au>

In article <slrn8jrrfm.7no.garcia_suarez@rafael.kazibao.net>,
garcia_suarez@hotmail.com (Rafael Garcia-Suarez) wrote:

>Bryan Thomas wrote in comp.lang.perl.misc:
>>I'm using Perl 5.6 on Win32.
>>
>>I have a file with lines that look like
>>
>>"a","b","c"\n
>>
>>I want to split these into different variables, something like
>>
>>while <> {
>>($a, $b, $c) = split /,/;
>>}
>>
>>but this leaves me with "a" in $a, "b" in $b, and "c" in $c.
>>
>>I'd like to do something besides
>>
>>foreach $x ($a,$b,$c) { s/"/$x/;}
>>
>>to get rid of the quotes.  Ideally, I could do something to $_ to keep
>>the quotes from going into the variables.
>
>You can use map:
>  while (<>) {
>    ($a,$b,$c) = map { /([^"]*)/; $1 } split /,/;
>  }

Which is really the same as the foreach fix, but with a more complicated
regex...

I suggest stripping the quotes before the split - that way you only need
to use the regex once, not three times (or maybe 26 times if his data
really goes "a","b",...,"z"\n)

use Benchmark;

    timethese(1000000, {
        'map' => sub{$_='"a","b","c"';
                     ($a,$b,$c) = map { /"([^"]*)/; $1 } split /,/;},
        'foreach' => sub{$_='"a","b","c"';
                         ($a,$b,$c) = split /,/;
                         foreach $x ($a,$b,$c) { s/"/$x/;}},
        'regex' => sub{$_='"a","b","c"';
                           s/"//g;
                           ($a,$b,$c) = split /,/;},
    });


Benchmark: timing 1000000 iterations of foreach, map, regex...
   foreach: 42 secs (42.20 usr  0.00 sys = 42.20 cpu)
       map: 50 secs (49.95 usr  0.00 sys = 49.95 cpu)
     regex: 23 secs (23.52 usr  0.00 sys = 23.52 cpu)



big

-- 
"But I think that's a cool feature. No formal definition
of the language means Perl is defined by what perl does. Ergo, perl
is a perfect, bug-free Perl interpreter. :)" - Simon Cozens in clpm


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

Date: Wed, 07 Jun 2000 06:20:49 GMT
From: nospam.newton@gmx.li (Philip 'Yes, that's my address' Newton)
Subject: Re: the end of perl?
Message-Id: <393de983.43621059@news.nikoma.de>

On Tue, 6 Jun 2000 18:46:08 +0200, "Alan J. Flavell"
<flavell@mail.cern.ch> wrote:

> On Tue, 6 Jun 2000, Bart Lateur wrote:
> 
> > The Euro symbol has a character code in the 128-255 range,
> 
> That's a very misleading claim, I'm afraid.  It has no character code
> at all in the iso-8859-1 code, whereas its character code in Unicode
> is 0x20AC (decimal 8364).  Etc.
> 
> You weren't by some mischance referring to some non-portable
> vendor-defined 8-bit coding, were you?  ;-}

Probably Windows-1252.

But ISO-8859-15 aka Latin9 AFAIK (has|will have) the Euro symbol at 0xA4
= decimal 164 (replacing ISO-8859-1's "currency sign").

Cheers,
Philip
-- 
Philip Newton <nospam.newton@gmx.li>
If you're not part of the solution, you're part of the precipitate.


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

Date: Wed, 07 Jun 2000 06:59:31 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: the end of perl?
Message-Id: <393df24b.549524@news.skynet.be>

Alan J. Flavell wrote:

>On Tue, 6 Jun 2000, Bart Lateur wrote:
>
>> >Unicode still has room  (more than "a few").
>> 
>> But how much of it is Ascii?
>
>Sorry, I'm not sure what your point is.  Ascii is a 7-bit
>code, fully defined some two decades back.

It's simple. All characters used in the definition of virtually any
programming language, including Perl, are in Ascii. No accented
characters or anything like that. (I'm talking about the language
itself, not embedded literal strings.) Didn't you ever notice?

-- 
	Bart.


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

Date: Wed, 07 Jun 2000 00:14:29 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: Tr vs. tr !@#@!#$@#%
Message-Id: <brian-ya02408000R0706000014290001@news.panix.com>

In article <8hjtek$o82$1@nnrp1.deja.com>, Tzadik Vanderhoof <tzadikv@my-deja.com> posted:

> > do you mean CGI.pm? it's already been done - just read the docs.
> >
> > if you don't read the docs, then who is to blame?

> I've read the docs.  I'd appreciate if you'd clue me in on where in the
> docs it points out a way to solve this problem.

it's the part of the CGI.pm docs that discusses the Tr() function.
i thought that it woudl be obvious...

-- 
brian d foy                    
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Mongers <URL:http://www.perl.org/>


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

Date: 7 Jun 2000 09:17:08 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: using 'exists' in a program to test for keys in a hash
Message-Id: <8hl3uk$5v9$1@lublin.zrz.tu-berlin.de>

Ala Qumsieh <aqumsieh@hyperchip.com> wrote in comp.lang.perl.misc:
>anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) wrote in
><8hiuj1$r8s$1@lublin.zrz.tu-berlin.de>: 
>
>>Ala Qumsieh <aqumsieh@hyperchip.com> wrote in comp.lang.perl.misc:
>>
>>[...]
>>
>>>This effectively says that the way you access %hash is governed by 
>>>functions defined in SDBM_File.pm. Specifically, in your case, if
>>>you try to use exists() on a hash entry, Perl will go and find the
>>>EXISTS method in SDBM_File and execute it, instead of executing the
>>>built-in exists() function. Apparently, this method is missing for
>>>some reason. 
>>
>>...the reason being that the underlying database mechanism doesn't
>>support entries of just a key with no value.  This is true for all
>>of the databases supported by perl.  The closest you get is a key
>>with an empty string for a value, so there is no difference between
>>exists() and defined().  Implementors have variously decided to
>>provide exists() as an alias for defined() or not.
>
>Ok. Fair enough. But, IMHO, not supplying a definition for exists() is 
>wrong, and can easily cause confusion, as we witnessed here. Perhaps 
>the author of this module can add an EXISTS subroutine that will issue 
>a warning saying something like:
>
>    	"exists() not supported. Using defined() instead .."
>
>AND properly document that. Very little extra effort that goes a long 
>way.

I tend to agree.  Probably everything should be done so that tie()ing
an existing hash to a *DBM module is as painless as possible.  On the
other hand, I understand an implementor who is leery of supplanting
a function by an almost-but-not-quite equivalent.  Issuing an optional
warning is probably a good compromise.

Anno


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

Date: Wed, 07 Jun 2000 07:41:08 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Value of <HANDLE> construct can be "0" ???
Message-Id: <393ef86d.2119336@news.skynet.be>

adrian2001@my-deja.com wrote:

>(Upgrading is not an option; I work for a *gigantic* corporation, and
>although is not as bureaucratic as other employers I've had, it is still
>not easy to "move"...)

I don't get it. 

How can Microsoft stuff be THE standard in such environments, while with
MS "upgrading" is the way of life?

-- 
	Bart.


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

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 3274
**************************************


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