[24062] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 6259 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 15 11:10:42 2004

Date: Mon, 15 Mar 2004 08:10:09 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 15 Mar 2004     Volume: 10 Number: 6259

Today's topics:
        Statistics for comp.lang.perl.misc <gbacon@hiwaay.net>
    Re: The form page <bill@hotmail.com>
    Re: The form page <noreply@gunnar.cc>
        using backquote or system with perl -ne in perl 5.8 <Jmc.NoSpam@nospam.web.de>
    Re: variable initialization question (Anno Siegel)
    Re: variable initialization question <tore@aursand.no>
    Re: variable initialization question <vetro@online.no>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Mon, 15 Mar 2004 13:21:00 -0000
From: Greg Bacon <gbacon@hiwaay.net>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <105bbds3v88qt00@corp.supernews.com>

Following is a summary of articles spanning a 7 day period,
beginning at 08 Mar 2004 13:22:56 GMT and ending at
15 Mar 2004 12:57:38 GMT.

Notes
=====

    - A line in the body of a post is considered to be original if it
      does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
    - All text after the last cut line (/^-- $/) in the body is
      considered to be the author's signature.
    - The scanner prefers the Reply-To: header over the From: header
      in determining the "real" email address and name.
    - Original Content Rating (OCR) is the ratio of the original content
      volume to the total body volume.
    - Find the News-Scan distribution on the CPAN!
      <URL:http://www.perl.com/CPAN/modules/by-module/News/>
    - Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
    - Copyright (c) 2004 Greg Bacon.
      Verbatim copying and redistribution is permitted without royalty;
      alteration is not permitted.  Redistribution and/or use for any
      commercial purpose is prohibited.

Excluded Posters
================

perlfaq-suggestions\@(?:.*\.)?perl\.com
faq\@(?:.*\.)?denver\.pm\.org
comdog\@panix\.com

Totals
======

Posters:  188
Articles: 587 (226 with cutlined signatures)
Threads:  127
Volume generated: 1142.9 kb
    - headers:    541.1 kb (9,797 lines)
    - bodies:     567.0 kb (18,437 lines)
    - original:   343.2 kb (11,913 lines)
    - signatures: 34.3 kb (846 lines)

Original Content Rating: 0.605

Averages
========

Posts per poster: 3.1
    median: 1.0 post
    mode:   1 post - 95 posters
    s:      14.7 posts
Posts per thread: 4.6
    median: 3 posts
    mode:   1 post - 32 threads
    s:      6.9 posts
Message size: 1993.8 bytes
    - header:     943.9 bytes (16.7 lines)
    - body:       989.1 bytes (31.4 lines)
    - original:   598.6 bytes (20.3 lines)
    - signature:  59.8 bytes (1.4 lines)

Top 20 Posters by Number of Posts
=================================

         (kb)   (kb)  (kb)  (kb)
Posts  Volume (  hdr/ body/ orig)  Address
-----  --------------------------  -------

   37    69.6 ( 28.2/ 41.4/ 16.9)  Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
   35    76.2 ( 33.2/ 33.8/ 16.4)  Ben Morrow <usenet@morrow.me.uk>
   23    72.1 ( 26.6/ 42.5/ 38.1)  tadmc@augustmail.com
   17    28.7 ( 16.2/  9.8/  5.4)  Tore Aursand <tore@aursand.no>
   17    41.6 ( 24.1/ 13.1/  7.4)  jwillmore@adelphia.net
   16    25.6 ( 16.1/  8.4/  4.0)  Gunnar Hjalmarsson <noreply@gunnar.cc>
   14    28.5 ( 12.9/ 14.5/  7.5)  Brian McCauley <nobull@mail.com>
   13    28.5 ( 12.1/ 13.5/  4.7)  tassilo.parseval@post.rwth-aachen.de
   13    32.5 ( 17.5/ 15.1/  5.2)  Jim Gibson <jgibson@mail.arc.nasa.gov>
   13    21.5 (  9.9/ 11.7/  5.4)  Paul Lalli <ittyspam@yahoo.com>
    9    13.6 (  8.7/  4.8/  1.6)  Vetle Roeim <vetro@online.no>
    9    10.7 (  7.3/  3.4/  2.3)  "chatiman" <chatiman@free.fr>
    8    16.5 (  8.2/  8.3/  4.3)  "Matt Garrish" <matthew.garrish@sympatico.ca>
    8     9.9 (  5.3/  4.6/  2.6)  Roel van der Steen <roel-perl@st2x.net>
    7    13.2 (  7.5/  5.7/  3.0)  Joe Smith <Joe.Smith@inwap.com>
    7    11.2 (  5.8/  5.2/  1.6)  "John W. Krahn" <krahnj@acm.org>
    6    14.3 (  8.0/  6.3/  3.6)  Chris <ceo@nospan.on.net>
    6     8.3 (  5.0/  3.3/  1.2)  Gregory Toomey <nospam@bigpond.com>
    6     9.3 (  5.4/  3.8/  1.8)  "Jürgen Exner" <jurgenex@hotmail.com>
    6    17.8 (  4.6/ 13.2/  3.7)  Oeln <ohmy9od@yahoo.com>

These posters accounted for 46.0% of all articles.

Top 20 Posters by Number of Followups
=====================================

             (kb)   (kb)  (kb)  (kb)
Followups  Volume (  hdr/ body/ orig)  Address
---------  --------------------------  -------

       37    69.6 ( 28.2/ 41.4/ 16.9)  Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
       35    76.2 ( 33.2/ 33.8/ 16.4)  Ben Morrow <usenet@morrow.me.uk>
       21    72.1 ( 26.6/ 42.5/ 38.1)  tadmc@augustmail.com
       17    28.7 ( 16.2/  9.8/  5.4)  Tore Aursand <tore@aursand.no>
       17    41.6 ( 24.1/ 13.1/  7.4)  jwillmore@adelphia.net
       16    25.6 ( 16.1/  8.4/  4.0)  Gunnar Hjalmarsson <noreply@gunnar.cc>
       14    28.5 ( 12.9/ 14.5/  7.5)  Brian McCauley <nobull@mail.com>
       13    28.5 ( 12.1/ 13.5/  4.7)  tassilo.parseval@post.rwth-aachen.de
       13    32.5 ( 17.5/ 15.1/  5.2)  Jim Gibson <jgibson@mail.arc.nasa.gov>
       13    21.5 (  9.9/ 11.7/  5.4)  Paul Lalli <ittyspam@yahoo.com>
        9    13.6 (  8.7/  4.8/  1.6)  Vetle Roeim <vetro@online.no>
        8    16.5 (  8.2/  8.3/  4.3)  "Matt Garrish" <matthew.garrish@sympatico.ca>
        8     9.9 (  5.3/  4.6/  2.6)  Roel van der Steen <roel-perl@st2x.net>
        7    13.2 (  7.5/  5.7/  3.0)  Joe Smith <Joe.Smith@inwap.com>
        7    11.2 (  5.8/  5.2/  1.6)  "John W. Krahn" <krahnj@acm.org>
        7    10.7 (  7.3/  3.4/  2.3)  "chatiman" <chatiman@free.fr>
        6     8.3 (  5.0/  3.3/  1.2)  Gregory Toomey <nospam@bigpond.com>
        6    14.3 (  8.0/  6.3/  3.6)  Chris <ceo@nospan.on.net>
        6     9.3 (  5.4/  3.8/  1.8)  "Jürgen Exner" <jurgenex@hotmail.com>
        6    12.5 (  5.1/  6.3/  4.2)  Michele Dondi <bik.mido@tiscalinet.it>

These posters accounted for 54.4% of all followups.

Top 20 Posters by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Address
--------------------------  -----  -------

  76.2 ( 33.2/ 33.8/ 16.4)     35  Ben Morrow <usenet@morrow.me.uk>
  72.1 ( 26.6/ 42.5/ 38.1)     23  tadmc@augustmail.com
  69.6 ( 28.2/ 41.4/ 16.9)     37  Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
  41.6 ( 24.1/ 13.1/  7.4)     17  jwillmore@adelphia.net
  32.5 ( 17.5/ 15.1/  5.2)     13  Jim Gibson <jgibson@mail.arc.nasa.gov>
  28.7 ( 16.2/  9.8/  5.4)     17  Tore Aursand <tore@aursand.no>
  28.5 ( 12.9/ 14.5/  7.5)     14  Brian McCauley <nobull@mail.com>
  28.5 ( 12.1/ 13.5/  4.7)     13  tassilo.parseval@post.rwth-aachen.de
  25.6 ( 16.1/  8.4/  4.0)     16  Gunnar Hjalmarsson <noreply@gunnar.cc>
  21.5 (  9.9/ 11.7/  5.4)     13  Paul Lalli <ittyspam@yahoo.com>
  17.8 (  4.6/ 13.2/  3.7)      6  Oeln <ohmy9od@yahoo.com>
  16.5 (  8.2/  8.3/  4.3)      8  "Matt Garrish" <matthew.garrish@sympatico.ca>
  14.6 (  0.5/ 14.2/ 14.2)      1  Greg Bacon <gbacon@hiwaay.net>
  14.3 (  8.0/  6.3/  3.6)      6  Chris <ceo@nospan.on.net>
  14.0 (  6.5/  7.4/  5.7)      5  "Alan J. Flavell" <flavell@ph.gla.ac.uk>
  13.7 (  2.3/ 11.4/ 10.2)      3  Steve The Geek <slkleine@hotmail.com>
  13.6 (  8.7/  4.8/  1.6)      9  Vetle Roeim <vetro@online.no>
  13.2 (  7.5/  5.7/  3.0)      7  Joe Smith <Joe.Smith@inwap.com>
  12.5 (  5.1/  6.3/  4.2)      6  Michele Dondi <bik.mido@tiscalinet.it>
  12.3 (  4.8/  5.8/  4.7)      6  James Taylor <spam-block-@-SEE-MY-SIG.com>

These posters accounted for 49.6% of the total volume.

Top 10 Posters by Volume of Original Content (min. ten posts)
=============================================================

        (kb)
Posts   orig  Address
-----  -----  -------

   23   38.1  tadmc@augustmail.com
   37   16.9  Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
   35   16.4  Ben Morrow <usenet@morrow.me.uk>
   14    7.5  Brian McCauley <nobull@mail.com>
   17    7.4  jwillmore@adelphia.net
   17    5.4  Tore Aursand <tore@aursand.no>
   13    5.4  Paul Lalli <ittyspam@yahoo.com>
   13    5.2  Jim Gibson <jgibson@mail.arc.nasa.gov>
   13    4.7  tassilo.parseval@post.rwth-aachen.de
   16    4.0  Gunnar Hjalmarsson <noreply@gunnar.cc>

These posters accounted for 32.3% of the original volume.

Top 10 Posters by OCR (minimum of ten posts)
============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

0.895  ( 38.1 / 42.5)     23  tadmc@augustmail.com
0.563  (  7.4 / 13.1)     17  jwillmore@adelphia.net
0.558  (  5.4 /  9.8)     17  Tore Aursand <tore@aursand.no>
0.515  (  7.5 / 14.5)     14  Brian McCauley <nobull@mail.com>
0.485  ( 16.4 / 33.8)     35  Ben Morrow <usenet@morrow.me.uk>
0.473  (  4.0 /  8.4)     16  Gunnar Hjalmarsson <noreply@gunnar.cc>
0.465  (  5.4 / 11.7)     13  Paul Lalli <ittyspam@yahoo.com>
0.407  ( 16.9 / 41.4)     37  Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
0.347  (  5.2 / 15.1)     13  Jim Gibson <jgibson@mail.arc.nasa.gov>
0.347  (  4.7 / 13.5)     13  tassilo.parseval@post.rwth-aachen.de

Bottom 10 Posters by OCR (minimum of ten posts)
===============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

0.895  ( 38.1 / 42.5)     23  tadmc@augustmail.com
0.563  (  7.4 / 13.1)     17  jwillmore@adelphia.net
0.558  (  5.4 /  9.8)     17  Tore Aursand <tore@aursand.no>
0.515  (  7.5 / 14.5)     14  Brian McCauley <nobull@mail.com>
0.485  ( 16.4 / 33.8)     35  Ben Morrow <usenet@morrow.me.uk>
0.473  (  4.0 /  8.4)     16  Gunnar Hjalmarsson <noreply@gunnar.cc>
0.465  (  5.4 / 11.7)     13  Paul Lalli <ittyspam@yahoo.com>
0.407  ( 16.9 / 41.4)     37  Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
0.347  (  5.2 / 15.1)     13  Jim Gibson <jgibson@mail.arc.nasa.gov>
0.347  (  4.7 / 13.5)     13  tassilo.parseval@post.rwth-aachen.de

10 posters (5%) had at least ten posts.

Top 20 Threads by Number of Posts
=================================

Posts  Subject
-----  -------

   28  Text editor implemented in Perl
   17  how to reset a variable
   16  Ordering large files (in perl?)
   16  Multiple compares -- TMTOWTDI
   16  Extracting directories in a path - TMBABWTDI
   15  Rockets Alternative
   14  File Creation From Form
   13  How to use times?
   13  removing trailing spaces
   13  using an assoc. array as a 'set'
   12  perl on windows
   12  storing and accessing a has in a package
   10  open(filehandle... is failing
   10  variable initialization question
   10  C expressions in Perl
    9  $result = system('/usr/bin/cksum TEST.mp3 >&1');
    9  Quoting non-numbers
    9  Deleting a folder recursively
    8  Tricky Perl Bug (amusing/unamusing)
    8  Regex doesn't match - what am I doing wrong?

These threads accounted for 44.0% of all articles.

Top 20 Threads by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Subject
--------------------------  -----  -------

  52.0 ( 27.2/ 21.8/ 12.1)     28  Text editor implemented in Perl
  48.8 ( 14.6/ 34.0/ 22.1)     16  Multiple compares -- TMTOWTDI
  41.4 ( 13.7/ 27.1/  8.1)     16  Ordering large files (in perl?)
  35.0 ( 17.1/ 16.2/ 10.7)     17  how to reset a variable
  34.3 (  2.0/ 32.3/ 32.3)      2  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.5 $)
  29.9 ( 16.0/ 13.3/  8.0)     14  File Creation From Form
  29.0 ( 14.2/ 14.0/  6.5)     16  Extracting directories in a path - TMBABWTDI
  26.4 ( 10.8/ 13.8/  6.8)     13  using an assoc. array as a 'set'
  24.6 ( 15.5/  7.7/  4.6)     15  Rockets Alternative
  24.1 ( 12.4/ 10.9/  5.7)     12  perl on windows
  21.7 ( 10.1/ 10.4/  6.7)      8  Need help with Undeliverable Emails
  19.7 ( 11.5/  7.8/  3.2)     13  How to use times?
  19.5 ( 11.2/  7.9/  3.8)     12  storing and accessing a has in a package
  18.8 (  2.6/ 15.1/  9.3)      3  No more handles error with DBD::DB2 on Linux
  18.4 (  8.8/  8.7/  5.2)      9  Deleting a folder recursively
  18.2 (  2.0/ 15.9/ 14.5)      3  Statistics for comp.lang.perl.misc
  17.4 ( 11.6/  5.5/  2.8)     13  removing trailing spaces
  17.1 ( 10.0/  5.5/  3.2)     10  C expressions in Perl
  17.1 (  9.5/  7.4/  4.7)     10  open(filehandle... is failing
  15.9 (  6.9/  8.3/  5.4)      8  Regex doesn't match - what am I doing wrong?

These threads accounted for 46.3% of the total volume.

Top 15 Threads by OCR (minimum of ten posts)
============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Subject
-----  --------------  -----  -------

0.661  ( 10.7/  16.2)     17  how to reset a variable
0.651  ( 22.1/  34.0)     16  Multiple compares -- TMTOWTDI
0.642  (  4.7/   7.4)     10  open(filehandle... is failing
0.603  (  8.0/  13.3)     14  File Creation From Form
0.597  (  4.6/   7.7)     15  Rockets Alternative
0.570  (  3.2/   5.5)     10  C expressions in Perl
0.556  ( 12.1/  21.8)     28  Text editor implemented in Perl
0.525  (  5.7/  10.9)     12  perl on windows
0.506  (  2.8/   5.5)     13  removing trailing spaces
0.490  (  6.8/  13.8)     13  using an assoc. array as a 'set'
0.485  (  3.8/   7.9)     12  storing and accessing a has in a package
0.463  (  6.5/  14.0)     16  Extracting directories in a path - TMBABWTDI
0.411  (  3.2/   7.8)     13  How to use times?
0.396  (  2.4/   6.2)     10  variable initialization question
0.301  (  8.1/  27.1)     16  Ordering large files (in perl?)

Bottom 15 Threads by OCR (minimum of ten posts)
===============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Subject
-----  --------------  -----  -------

0.661  ( 10.7 / 16.2)     17  how to reset a variable
0.651  ( 22.1 / 34.0)     16  Multiple compares -- TMTOWTDI
0.642  (  4.7 /  7.4)     10  open(filehandle... is failing
0.603  (  8.0 / 13.3)     14  File Creation From Form
0.597  (  4.6 /  7.7)     15  Rockets Alternative
0.570  (  3.2 /  5.5)     10  C expressions in Perl
0.556  ( 12.1 / 21.8)     28  Text editor implemented in Perl
0.525  (  5.7 / 10.9)     12  perl on windows
0.506  (  2.8 /  5.5)     13  removing trailing spaces
0.490  (  6.8 / 13.8)     13  using an assoc. array as a 'set'
0.485  (  3.8 /  7.9)     12  storing and accessing a has in a package
0.463  (  6.5 / 14.0)     16  Extracting directories in a path - TMBABWTDI
0.411  (  3.2 /  7.8)     13  How to use times?
0.396  (  2.4 /  6.2)     10  variable initialization question
0.301  (  8.1 / 27.1)     16  Ordering large files (in perl?)

15 threads (11%) had at least ten posts.

Top 5 Targets for Crossposts
============================

Articles  Newsgroup
--------  ---------

       2  alt.php
       2  comp.databases.ibm-db2
       2  alt.comp.lang.php
       1  comp.infosystems.www.servers.misc
       1  comp.infosystems.www.servers.unix

Top 4 Crossposters
==================

Articles  Address
--------  -------

       2  Gatekeeper <ralph@ralphcrawford.deletethis.org>
       2  NoJunkMailshah@xnet.com
       2  "dave" <replytogroup>
       2  Gunnar Hjalmarsson <noreply@gunnar.cc>


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

Date: Mon, 15 Mar 2004 12:07:35 GMT
From: "blnukem" <bill@hotmail.com>
Subject: Re: The form page
Message-Id: <b0h5c.41572$Sp2.12124263@news4.srv.hcvlny.cv.net>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <form name="NewPage" method="post" action="newpage.pl">
        <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"
size="2">Please
          type in the name for your new page:
          <input type="text" name="NewPageName" maxlength="24">
          <br>
          </font></p>
        <p align="center">
          <input type="submit" name="Submit2" value="Add Page">
          <input type=hidden name="Action" value="AddNewPage">

        </p>
      </form>
    </td>
  </tr>
</table>
</body>
</html>




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

Date: Mon, 15 Mar 2004 14:24:56 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: The form page
Message-Id: <c34apd$2208gr$1@ID-184292.news.uni-berlin.de>

[ Please don't reply without giving context. ]

blnukem wrote:
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

This aspect of your problem is off-topic here. (You illustrated that 
very clearly by posting HTML code only.) If you need to discuss it 
further, please post to comp.infosystems.www.authoring.cgi (ciwac).

Before you do, you may want to study this thread in ciwac: 
http://groups.google.se/groups?threadm=bro284%245h4r7%241%40ID-184292.news.uni-berlin.de

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl



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

Date: Mon, 15 Mar 2004 09:36:21 +0100
From: =?ISO-8859-1?Q?Jean-Marie_Cl=E9ment?= <Jmc.NoSpam@nospam.web.de>
Subject: using backquote or system with perl -ne in perl 5.8
Message-Id: <c33pu5$kah$1@news.mch.sbs.de>

Hi,

we face following problem using activestate perl 5.8 (build 806) under 
XP. Constructs of the form:

cleartool find [...] | perl -ne "print `clearvtree $_`;"

lead to processing only a subset of the output of the cleartool command. 
Same if replacing the clearvtree with e.g. echo.exe
This worked without problem with 5.6.1.

Any hint? Thanks in advance,

    Jean-Marie.

NB: cleartool and clearvtree are clearcase commands. I put them here for 
example, but I think it is not relevant


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

Date: 15 Mar 2004 11:06:28 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: variable initialization question
Message-Id: <c342nk$b9$1@mamenchi.zrz.TU-Berlin.DE>

 <ctcgag@hotmail.com> wrote in comp.lang.perl.misc:
> Paul Lalli <ittyspam@yahoo.com> wrote:

> > Yes, but before I answer that, you should be asking yourself why you're
> > doing that.  Perl variables are undef by default, which is treated as 0
> > in numeric context.
> 
> Let's say you are running an accumulator.  It is true that you don't
> get a warning upon incrementing an undef accumulator.  However, there is no
> point in having an accumulator which you don't use elsewhere, and when you
> do use it elsewhere you may find that it will emit errors on the boundary
> condition that the accumulator was incremented zero times.  That's ugly and
> not particularly desirable.
> 
> > There's generally no reason to initialize a variable
> > to 0.
> 
> Unless you like clean programs.

You're not recommending to initialize *all* variables, are you?

There are situations that demand initialization, and you have given
an example, but that's still a special case.  A Perl source that
initializes every variable shouts "newbie".

Anno


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

Date: Mon, 15 Mar 2004 16:19:00 +0100
From: Tore Aursand <tore@aursand.no>
Subject: Re: variable initialization question
Message-Id: <pan.2004.03.15.15.19.00.17860@aursand.no>

On Mon, 15 Mar 2004 11:06:28 +0000, Anno Siegel wrote:
>>> There's generally no reason to initialize a variable to 0.

>> Unless you like clean programs.

> You're not recommending to initialize *all* variables, are you?

Why not, actually?  I really _like_ the idea of having each variable in a
program initialized before use.  What are the arguments against doing
this?


-- 
Tore Aursand <tore@aursand.no>
"I didn't have time to write a short letter, so I wrote a long one
 instead." -- Mark Twain


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

Date: Mon, 15 Mar 2004 17:00:47 +0100
From: Vetle Roeim <vetro@online.no>
Subject: Re: variable initialization question
Message-Id: <m3znaiqevk.fsf@quimby.dirtyhack.org>

* Tore Aursand
> On Mon, 15 Mar 2004 11:06:28 +0000, Anno Siegel wrote:
>> You're not recommending to initialize *all* variables, are you?
>
> Why not, actually?  I really _like_ the idea of having each variable in a
> program initialized before use.  What are the arguments against doing
> this?

  YMMV, of course, but initializing a variable may indicate that the
  value is meaningful or some useful default value. If no such value
  exists, I would prefer to delay setting any value until it is
  appropriate.

  For instance, if $foo is supposed to hold some integer input from
  the user, undef could mean that the user did not input any value. If
  it was set to a default integer value, this would not be so
  clear. Though you could set it to undef by default... But what's the
  point? Clarity? I don't buy that...

  Do I make any sense at all? :)

-- 
#!/usr/bin/vr


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

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

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 V10 Issue 6259
***************************************


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