[21982] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 4204 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Dec 2 09:05:46 2002

Date: Mon, 2 Dec 2002 06:05:08 -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, 2 Dec 2002     Volume: 10 Number: 4204

Today's topics:
    Re: Changing the width of the tab (Tad McClellan)
        Closing an unsaved modded Excel spreadsheet? <spikey-wan@bigfoot.com>
    Re: How to place entire commnad line argument list into <bik.mido@tiscalinet.it>
    Re: How to place entire commnad line argument list into <bik.mido@tiscalinet.it>
        mask bit detection (Vorxion)
    Re: mysql <mgjv@tradingpost.com.au>
    Re: mysql <goldbb2@earthlink.net>
        New posters to comp.lang.perl.misc <gbacon@cs.uah.edu>
        perl on RedHat8 <news@none.com>
    Re: perl on RedHat8 <me@privacy.net>
    Re: Regular expressions <Gary@galnet.co.uk>
    Re: Regular expressions <tassilo.parseval@post.rwth-aachen.de>
    Re: Regular expressions <bernard.el-hagin@DODGE_THISlido-tech.net>
    Re: Regular expressions <Gary@galnet.co.uk>
    Re: Regular expressions <Gary@galnet.co.uk>
    Re: Regular expressions (Tad McClellan)
    Re: Regular expressions <Gary@galnet.co.uk>
    Re: Regular expressions <dave@dave.org.uk>
    Re: rounding numbers <BROWNHIK@Syntegra.Bt.Co.Uk>
    Re: strange behaviour of (Activestate) perl wrt "sheban <bik.mido@tiscalinet.it>
    Re: win32 <spp@monaco377.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Mon, 2 Dec 2002 06:33:32 -0600
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Changing the width of the tab
Message-Id: <slrnaumkos.323.tadmc@magna.augustmail.com>

AG <ag269@columbia.edu> wrote:

> I am trying to output a table of 2 columns using /t formatting:

> Is there a way to change the default width of columns from 8 to ,say,
> 12 characters?


The "width" of a tab character depends on your output device,
not on the programming language used to generate the tab characters.

You could however, replace the tabs with spaces yourself:

   perldoc -q tab

      "How do I expand tabs in a string?"


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: Mon, 2 Dec 2002 11:31:10 -0000
From: "Richard S Beckett" <spikey-wan@bigfoot.com>
Subject: Closing an unsaved modded Excel spreadsheet?
Message-Id: <asfgbb$pii$1@newshost.mot.com>

Guys,

I'm using Win32::OLE to load and populate an Excel spreadsheet. The tests
involved take a long time, and it's possible for the user to stop the tests
before they complete.

This leaves me with;
my template modified, which I don't want to overwrite;
a partly populated spreadsheet, which I don't want to save;
a huge spreadsheet opened, which I don't want to save and delete, as it
takes a very long time to save it.

So, I want to be able to close the spreadsheet, without saving it.
Unfortunately, I get a prompt from Excel, asying that the spreadsheet has
changed, and do I want to save it. I don't want this prompt to appear.

I have searched the web, and Google, and have found many "solutions" to this
problem. Unfortunately none of them actually work!

I have tried:

$excel -> {DisplayAlerts} = 0;
and
undef $_book;
and
$_book -> {Saved} = 1;
undef $_book;
and
$book -> Close({SaveChanges => DoNotSaveChanges});
and
$book -> Close (SaveChanges => "0");
and
$book = $excel -> Workbooks -> Close ();
undef $excel;

Does anyone know a way to do this that actually works?

Thanks.

R.






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

Date: Mon, 02 Dec 2002 09:26:32 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: How to place entire commnad line argument list into a single string   variable
Message-Id: <b66muu45mrrs8tgrg1kmb2ou3v63pmep7c@4ax.com>

On Sun, 01 Dec 2002 12:43:02 -0800, Chuckster
<chuckycarson@networkcloud.com> wrote:

>I have a perl script that expects a SQL query as it's command line 
>argument. I want to place the entire command line argument into a single 
>string. It there an easy way of doing this other than checking the 
>length of @ARGV and then building a string in a while/for loop?

my string = join ' ', @ARGV;


Michele
-- 
>It's because the universe was programmed in C++.
No, no, it was programmed in Forth.  See Genesis 1:12:
"And the earth brought Forth ..."
- Robert Israel on sci.math, thread "Why numbers?"


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

Date: Mon, 02 Dec 2002 09:31:57 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: How to place entire commnad line argument list into a single string   variable
Message-Id: <cc6muu4s9t3vnfq4qusvrv3mun9djpeb9f@4ax.com>

On Mon, 02 Dec 2002 09:26:32 +0100, I wrote (D'Oh!):

>my string = join ' ', @ARGV;

Obviously that should have been:

  my $string = join ' ', @ARGV;

but maybe I meant:

  use constant STRING => join ' ', @ARGV;


Michele
-- 
>It's because the universe was programmed in C++.
No, no, it was programmed in Forth.  See Genesis 1:12:
"And the earth brought Forth ..."
- Robert Israel on sci.math, thread "Why numbers?"


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

Date: 2 Dec 2002 08:32:34 -0500
From: vorxion@fairlite.com (Vorxion)
Subject: mask bit detection
Message-Id: <3deb60f2$1_3@news.iglou.com>

Given 0751 and the like, what is the best method in perl for determining
which "bits" are set on each byte?

I'm personally thinking subtract the highest, then the next, until lowest,
if one fails, you know it isn't set, if it succeeds, it's set.  I'd figure
there's a function for this already though and didn't want to roll my own
unless I had to.

Suggetions?

-- 
Vorxion - Member of The Vortexa Elite


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

Date: Mon, 02 Dec 2002 05:18:29 GMT
From: Martien Verbruggen <mgjv@tradingpost.com.au>
Subject: Re: mysql
Message-Id: <slrnaulrdn.mmn.mgjv@verbruggen.comdyn.com.au>

On Sun, 01 Dec 2002 23:35:23 -0500,
	David Means <dmeans@the-means.net> wrote:
> On Sun, 01 Dec 2002 20:19:34 -0500, Benjamin Goldberg wrote:

>> #! perl -w
>> use strict;
>> 
>> use DBI ();
>> use DBD::mysql ();

> Where is a FAQ on how to construct this stuff for standard SQL
> connections.  Say, Sybase, or MSSQL Server?

Standard? What way do you mean with that?

The documentation for the DBI module comes with the modules. Part of
that installation is also a FAQ, installed as DBI::FAQ. Included in
the documentation is also a large list of web resources with more
information, the most important one probably being
http://dbi.perl.org/.

The documentation for the appropriate driver comes with the DBD::*
package that you install. If you want, you can look at the
documentation on search.cpan.org as well.

Martien
-- 
                        | 
Martien Verbruggen      | This matter is best disposed of from a great
Trading Post Australia  | height, over water.
                        | 


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

Date: Mon, 02 Dec 2002 01:52:28 -0500
From: Benjamin Goldberg <goldbb2@earthlink.net>
Subject: Re: mysql
Message-Id: <3DEB032C.65D9C3E4@earthlink.net>

David Means wrote:
> 
> On Sun, 01 Dec 2002 20:19:34 -0500, Benjamin Goldberg wrote:
> 
> { snip }
> >
> > #! perl -w
> > use strict;
> >
> > use DBI ();
> > use DBD::mysql ();
> >
> > my $dsn = join(";",
> >    "DBI:mysql",
> >    "database=$database",
> >    "host=$hostname",
> >    "port=$port",
> > );
> >
> > my $dbh = DBI->connect(
> >    $dsn, $user, $password,
> >    { RaiseError => 1, AutoCommit => 1 },
> > ) or die "DBI->connect to $dsn failed: $DBI::errstr";
> >
> 
> Where is a FAQ on how to construct this stuff for standard SQL
> connections.  Say, Sybase, or MSSQL Server?

To connect to Sybase, it's exactly the same, except that you replace the
word "mysql" with "Sybase" throughout the code.

To discover things like this, use search.cpan.org, looking for a module
whose name is of the form: 'DBD::<whatever>'.

To connect to MSSQL Server, there isn't a DBD specifically for that, but
since MSSQL supports ODBC, you can use DBD::ODBC, and an appropriate
$dsn string.

-- 
my $n = 2; print +(split //, 'e,4c3H r ktulrnsJ2tPaeh'
 ."\n1oa! er")[map $n = ($n * 24 + 30) % 31, (42) x 26]


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

Date: Mon, 02 Dec 2002 12:07:25 -0000
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: New posters to comp.lang.perl.misc
Message-Id: <uumj7th5uu8179@corp.supernews.com>

Following is a summary of articles from new posters spanning a 7 day
period, beginning at 25 Nov 2002 11:59:22 GMT and ending at
02 Dec 2002 11:00:27 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) 2002 Greg Bacon.
      Verbatim copying and redistribution is permitted without royalty;
      alteration is not permitted.  Redistribution and/or use for any
      commercial purpose is prohibited.

Totals
======

Posters:  81 (34.5% of all posters)
Articles: 147 (20.0% of all articles)
Volume generated: 285.0 kb (19.5% of total volume)
    - headers:    115.5 kb (2,339 lines)
    - bodies:     166.7 kb (5,580 lines)
    - original:   112.0 kb (3,793 lines)
    - signatures: 2.7 kb (57 lines)

Original Content Rating: 0.672

Averages
========

Posts per poster: 1.8
    median: 1 post
    mode:   1 post - 52 posters
    s:      1.9 posts
Message size: 1985.3 bytes
    - header:     804.3 bytes (15.9 lines)
    - body:       1161.1 bytes (38.0 lines)
    - original:   780.5 bytes (25.8 lines)
    - signature:  18.9 bytes (0.4 lines)

Top 10 Posters by Number of Posts
=================================

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

    9    14.9 (  7.4/  7.6/  2.5)  Ben Morrow <mauzo@mimosa.csv.warwick.ac.uk>
    7     9.7 (  5.0/  4.7/  4.3)  "Extended Partition" <extendedpartition@NOSPAM.yahoo.com>
    5    13.8 (  3.5/ 10.3/  2.4)  "Palladium Solutions" <palladium@spinn.net>
    5    11.9 (  3.5/  8.5/  6.7)  qanda <fumail@freeuk.com>
    5     6.6 (  4.1/  2.4/  1.2)  Will Cardwell <william.cardwell@ericsson.com>
    5     8.7 (  3.5/  5.2/  1.7)  flinky <alanluc@rogers.com>
    5    12.8 (  3.4/  9.4/  4.2)  "Tom Weeks" <tomweeks@charter.net>
    4     5.8 (  3.7/  2.0/  0.9)  Stuart Flowers <stuart.flowers@t-online.de>
    4    10.2 (  4.6/  5.5/  1.8)  "Kevin Brownhill" <kevinbrownhill@brooknet.co.uk>
    4     6.8 (  3.2/  3.5/  2.6)  Jane Doe <jane.doe@acme.com>

These posters accounted for 7.2% of all articles.

Top 10 Posters by Volume
========================

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

  16.3 (  1.3/ 15.1/ 14.7)      1  "dan marinescu" <support@danmarinescu.com>
  14.9 (  7.4/  7.6/  2.5)      9  Ben Morrow <mauzo@mimosa.csv.warwick.ac.uk>
  13.8 (  3.5/ 10.3/  2.4)      5  "Palladium Solutions" <palladium@spinn.net>
  12.8 (  3.4/  9.4/  4.2)      5  "Tom Weeks" <tomweeks@charter.net>
  11.9 (  3.5/  8.5/  6.7)      5  qanda <fumail@freeuk.com>
  10.2 (  4.6/  5.5/  1.8)      4  "Kevin Brownhill" <kevinbrownhill@brooknet.co.uk>
   9.7 (  5.0/  4.7/  4.3)      7  "Extended Partition" <extendedpartition@NOSPAM.yahoo.com>
   8.9 (  0.7/  8.2/  8.2)      1  Jacob <Jacob.Schroeder@latitude.com>
   8.7 (  3.5/  5.2/  1.7)      5  flinky <alanluc@rogers.com>
   7.7 (  2.2/  5.5/  3.0)      3  Caie <caie@elixa.co.uk>

These posters accounted for 7.9% of the total volume.

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

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

0.911  (  4.3 /  4.7)      7  "Extended Partition" <extendedpartition@NOSPAM.yahoo.com>
0.794  (  6.7 /  8.5)      5  qanda <fumail@freeuk.com>
0.746  (  2.6 /  3.5)      4  Jane Doe <jane.doe@acme.com>
0.547  (  3.0 /  5.5)      3  Caie <caie@elixa.co.uk>
0.528  (  1.5 /  2.8)      3  "Susan G. Conger" <congers@yoeric.com>
0.503  (  1.2 /  2.4)      5  Will Cardwell <william.cardwell@ericsson.com>
0.445  (  4.2 /  9.4)      5  "Tom Weeks" <tomweeks@charter.net>
0.443  (  0.9 /  2.0)      4  Stuart Flowers <stuart.flowers@t-online.de>
0.380  (  0.7 /  1.9)      3  "Gary" <Gary@galnet.co.uk>
0.353  (  0.8 /  2.2)      3  "Carsten L." <clandos@web.de>

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

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

0.528  (  1.5 /  2.8)      3  "Susan G. Conger" <congers@yoeric.com>
0.503  (  1.2 /  2.4)      5  Will Cardwell <william.cardwell@ericsson.com>
0.445  (  4.2 /  9.4)      5  "Tom Weeks" <tomweeks@charter.net>
0.443  (  0.9 /  2.0)      4  Stuart Flowers <stuart.flowers@t-online.de>
0.380  (  0.7 /  1.9)      3  "Gary" <Gary@galnet.co.uk>
0.353  (  0.8 /  2.2)      3  "Carsten L." <clandos@web.de>
0.333  (  2.5 /  7.6)      9  Ben Morrow <mauzo@mimosa.csv.warwick.ac.uk>
0.329  (  1.8 /  5.5)      4  "Kevin Brownhill" <kevinbrownhill@brooknet.co.uk>
0.326  (  1.7 /  5.2)      5  flinky <alanluc@rogers.com>
0.229  (  2.4 / 10.3)      5  "Palladium Solutions" <palladium@spinn.net>

14 posters (17%) had at least three posts.

Top 10 Targets for Crossposts
=============================

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

       3  comp.lang.perl.modules
       2  comp.protocols.snmp
       1  nl.comp.os.ms-windows
       1  news.answers
       1  nl.comp.os.linux.overig
       1  nl.announce
       1  comp.answers
       1  nl.comp.programmeren
       1  nl.internet.www.server-side

Top 10 Crossposters
===================

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



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

Date: Mon, 02 Dec 2002 05:43:29 GMT
From: Gadrael <news@none.com>
Subject: perl on RedHat8
Message-Id: <5qCG9.198938$NH2.13425@sccrnsc01>

Whenever I write a simple print script on my newly installed RH8 box the 
text will not print to the screen unless I add in a \n character. This 
never happened under older distributions of RH. Does anyone know why this 
is or what has happened? It seems to be a RH8 thing since if I redirect the 
output to a file and then cat the file the contents does not print but if I 
use an editor I do see the output in the file. Here is an example of the 
situation:

____________________________
#!/usr/bin/perl
# Hello.plx
use warnings;
use strict;

print "Hello World";
____________________________

The expected output is for the file to print but the command prompt to be at 
the end of the line because the cursor is not set to a new line. This does 
not happen on my new install of RH8. However if I add the \n character 
(print "Hello World\n";) I get see the line. I have tried redirecting the 
output of the script without the \n character and the "Hello World" out put 
is there but I can only see it with an editor as the cat command gives the 
same result as running the script to print to the screen. 

Any ideas or knowledge of what is happening would be appreciated. I don't 
want to go back to RH7.3 but this is really annoying if I am say printing 
the value of a varable and the variable.

______________________________

#!/usr/bin/perl
# variabletest.plx
use warnings;
use strict;

my $test = 0xBEEF;
print $test;

_______________________________

This will only print the number 48879 if I change the last line to "print 
$test, "\n";

Thanks in advance for any help with this annoyance.

Gadrael



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

Date: Mon, 2 Dec 2002 20:25:00 +1100
From: "Tintin" <me@privacy.net>
Subject: Re: perl on RedHat8
Message-Id: <asf8tc$qrhhd$1@ID-172104.news.dfncis.de>


"Gadrael" <news@none.com> wrote in message
news:5qCG9.198938$NH2.13425@sccrnsc01...
> Whenever I write a simple print script on my newly installed RH8 box the
> text will not print to the screen unless I add in a \n character. This
> never happened under older distributions of RH. Does anyone know why this
> is or what has happened? It seems to be a RH8 thing since if I redirect
the
> output to a file and then cat the file the contents does not print but if
I
> use an editor I do see the output in the file. Here is an example of the
> situation:
>
> ____________________________
> #!/usr/bin/perl
> # Hello.plx
> use warnings;
> use strict;
>
> print "Hello World";
> ____________________________
>
> The expected output is for the file to print but the command prompt to be
at
> the end of the line because the cursor is not set to a new line. This does
> not happen on my new install of RH8. However if I add the \n character
> (print "Hello World\n";) I get see the line. I have tried redirecting the
> output of the script without the \n character and the "Hello World" out
put
> is there but I can only see it with an editor as the cat command gives the
> same result as running the script to print to the screen.

Doing

export PS1="$ "

should give you a clue as to what is going on.





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

Date: Mon, 2 Dec 2002 09:10:22 -0000
From: "Gary" <Gary@galnet.co.uk>
Subject: Re: Regular expressions
Message-Id: <WqGG9.314$E51.60389@newsfep1-win.server.ntli.net>

Hi
    Could one of you point me in the right direction for learning more about
the perl regular expressions?

i have a book which involves the m// & s// and i don't understand the use of
*, ?, + etc.

Any help appreciated

Cheers

Gary






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

Date: 2 Dec 2002 10:22:21 GMT
From: "Tassilo v. Parseval" <tassilo.parseval@post.rwth-aachen.de>
Subject: Re: Regular expressions
Message-Id: <asfc8t$hrs$1@nets3.rz.RWTH-Aachen.DE>

Also sprach Gary:

>     Could one of you point me in the right direction for learning more about
> the perl regular expressions?
> 
> i have a book which involves the m// & s// and i don't understand the use of
> *, ?, + etc.

You might start with the documentation that ships with Perl. Try

    perldoc perlretut (a tutorial)
    perldoc perlre    (the reference)

Regular expressions are quite well covered since they have been, after
all, a rather integral part of Perl for a long time.

Tassilo
-- 
$_=q!",}])(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus;})(rekcah{lrePbus;})(lreP{rehtonabus;})(rehtona{tsuJbus!;
$_=reverse;s/sub/(reverse"bus").chr(32)/xge;tr~\n~~d;eval;


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

Date: Mon, 2 Dec 2002 10:41:33 +0000 (UTC)
From: Bernard El-Hagin <bernard.el-hagin@DODGE_THISlido-tech.net>
Subject: Re: Regular expressions
Message-Id: <asfdct$c0u$1@korweta.task.gda.pl>

In article <WqGG9.314$E51.60389@newsfep1-win.server.ntli.net>, Gary
wrote:
> Hi
>     Could one of you point me in the right direction for learning more about
> the perl regular expressions?
> 
> i have a book which involves the m// & s// and i don't understand the use of
> *, ?, + etc.


Get rid of the book, then, and check out the documentation you get with
Perl:


  perldoc perlretut
  perldoc perlre



Cheers,
Bernard
--
echo 42|perl -pe '$#="Just another Perl hacker,"'


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

Date: Mon, 2 Dec 2002 09:54:32 -0000
From: "Gary" <Gary@galnet.co.uk>
Subject: Re: Regular expressions
Message-Id: <m4HG9.1968$Lk4.443122@newsfep2-win.server.ntli.net>

Thanks Tassilo,
   I knew of the reference, but not the tutorial.

cheers

Gary

"Tassilo v. Parseval" <tassilo.parseval@post.rwth-aachen.de> wrote in
message news:asfc8t$hrs$1@nets3.rz.RWTH-Aachen.DE...
> Also sprach Gary:
>
> >     Could one of you point me in the right direction for learning more
about
> > the perl regular expressions?
> >
> > i have a book which involves the m// & s// and i don't understand the
use of
> > *, ?, + etc.
>
> You might start with the documentation that ships with Perl. Try
>
>     perldoc perlretut (a tutorial)
>     perldoc perlre    (the reference)
>
> Regular expressions are quite well covered since they have been, after
> all, a rather integral part of Perl for a long time.
>
> Tassilo
> --
> $_=q!",}])(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
> pam{rekcahbus;})(rekcah{lrePbus;})(lreP{rehtonabus;})(rehtona{tsuJbus!;
> $_=reverse;s/sub/(reverse"bus").chr(32)/xge;tr~\n~~d;eval;




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

Date: Mon, 2 Dec 2002 09:56:15 -0000
From: "Gary" <Gary@galnet.co.uk>
Subject: Re: Regular expressions
Message-Id: <Z5HG9.1970$Lk4.443472@newsfep2-win.server.ntli.net>

Thanks Bernard,
    The book has been good for the other stuff so far actually.  Thanks for
the perldoc perlretut, i only knew of the reference.

Cheers

Gary

"Bernard El-Hagin" <bernard.el-hagin@DODGE_THISlido-tech.net> wrote in
message news:asfdct$c0u$1@korweta.task.gda.pl...
> In article <WqGG9.314$E51.60389@newsfep1-win.server.ntli.net>, Gary
> wrote:
> > Hi
> >     Could one of you point me in the right direction for learning more
about
> > the perl regular expressions?
> >
> > i have a book which involves the m// & s// and i don't understand the
use of
> > *, ?, + etc.
>
>
> Get rid of the book, then, and check out the documentation you get with
> Perl:
>
>
>   perldoc perlretut
>   perldoc perlre
>
>
>
> Cheers,
> Bernard
> --
> echo 42|perl -pe '$#="Just another Perl hacker,"'




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

Date: Mon, 2 Dec 2002 06:27:40 -0600
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Regular expressions
Message-Id: <slrnaumkds.323.tadmc@magna.augustmail.com>

Gary <Gary@galnet.co.uk> wrote:

>     Could one of you point me in the right direction for learning more about
> the perl regular expressions?


If you still want more after reading the standard docs that
came with perl, this is a really good book:


   "Mastering Regular Expressions", published by O'Reilly


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: Mon, 2 Dec 2002 11:35:18 -0000
From: "Gary" <Gary@galnet.co.uk>
Subject: Re: Regular expressions
Message-Id: <SyIG9.2111$Lk4.464492@newsfep2-win.server.ntli.net>

Thanks Tad,
    but at this stage, i just want to understand them at least.

cheers

Gary
"Tad McClellan" <tadmc@augustmail.com> wrote in message
news:slrnaumkds.323.tadmc@magna.augustmail.com...
> Gary <Gary@galnet.co.uk> wrote:
>
> >     Could one of you point me in the right direction for learning more
about
> > the perl regular expressions?
>
>
> If you still want more after reading the standard docs that
> came with perl, this is a really good book:
>
>
>    "Mastering Regular Expressions", published by O'Reilly
>
>
> --
>     Tad McClellan                          SGML consulting
>     tadmc@augustmail.com                   Perl programming
>     Fort Worth, Texas




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

Date: Mon, 02 Dec 2002 14:01:00 +0000
From: "Dave Cross" <dave@dave.org.uk>
Subject: Re: Regular expressions
Message-Id: <pan.2002.12.02.14.01.00.351019@dave.org.uk>

[please don't top-post in this newsgroup]

On Mon, 02 Dec 2002 09:54:32 +0000, Gary wrote:

> Thanks Tassilo,
>    I knew of the reference, but not the tutorial.

There's also perlrequick.

Dave...

-- 
  Love is a fire of flaming brandy
  Upon a crepe suzette



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

Date: Mon, 2 Dec 2002 09:52:21 -0000
From: "Kevin Brownhill" <BROWNHIK@Syntegra.Bt.Co.Uk>
Subject: Re: rounding numbers
Message-Id: <asfasr$6hm$1@pheidippides.axion.bt.co.uk>


"Alan J. Flavell" <flavell@mail.cern.ch> wrote in message
news:Pine.LNX.4.40.0211281924100.25908-100000@lxplus074.cern.ch...
> On Nov 28, Kevin Brownhill inscribed on the eternal scroll:
>
> [quotes entire posting in order to say]
>
> > But some people may want to round in the way they learned in elementary
> > school, college or university
>
> Indeed they might, but that doesn't make it "consistent", nor "best",
> nor even "right".
>
> > They may not care if it is statistically balanced, or whether someone
has
> > recently discovered that it is fundamentally incorrect.
>
> That's better.  Now you dropped your claim that the right answer was
> inconsistent, and you concede that the layman's version might be
> theoretically unsound.  That seems to be progress, of a kind.

That seems to be sarcasm, of a kind.

>
> > My way may be *wrong* according to your definition, but it is what may
> > people believe it to be, including the writers of Excel, and even if the
> > customer is sometimes *wrong* they only pay if they get what they want.
>
> OK, I'll only pay you if you agree to testify that the Earth is flat.
> I don't care that someone recently discovered that it is fundamentally
> incorrect.  It's in the spec.  Fair do's?   You can redefine pi, while
> you're at it.
>
> > As I said, the arithmetic way is best if you want to specify how the
> > rounding is to work.
>
> I think you're just putting a positive spin on "if you want a
> different definition than the one agreed by current best practice,
> you'll need to supply the code to do it your way".
>

Current best practice is like politicians - here today gone tomorrow.

The wonderful thing about standards is that there are so many to choose
from.




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

Date: Mon, 02 Dec 2002 09:18:28 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: strange behaviour of (Activestate) perl wrt "shebang line" under Win*
Message-Id: <mockuug1sjjs36gfv6t1hqrf5ggeqaqg6i@4ax.com>

On Sat, 30 Nov 2002 09:50:17 +0000 (UTC),
mauzo@mimosa.csv.warwick.ac.uk (Ben Morrow) wrote:

>It ignores all of /usr/bin/perl except for perl. Then it indeed parses all the
>switches. This can be very useful: if the script specifies -l, or -T, for
>example. Also, on some Unices, the OS is pretty bad at passing the whole #!
>line to perl, so perl got used to parsing it itself.
>
>Anyway, it's documented (perldoc perlrun), which is all that matters.
>
>I would suggest using #!/usr/bin/perl -wpi~ and adding a series of unlink
>commands at the end to remove the backups (I should explicitly close STDOUT 
>first). Then it works the same Win32/Unix.


Thanks,
Michele
-- 
>It's because the universe was programmed in C++.
No, no, it was programmed in Forth.  See Genesis 1:12:
"And the earth brought Forth ..."
- Robert Israel on sci.math, thread "Why numbers?"


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

Date: Mon, 02 Dec 2002 09:53:40 +0100
From: =?ISO-8859-15?Q?S=E9bastien?= Cottalorda <spp@monaco377.com>
Subject: Re: win32
Message-Id: <3deb1fcf$0$11836$626a54ce@news.free.fr>

Kris Carlson wrote:

> Hi,
> 
> Are there shortcomings to learning perl on win32 systems (my system at
> home)? What about if the end goal is to do bioinformatics?

There is an O'reilly book : "Perl introduction for bioinformatic"
by James Tisdall

> 
> K



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

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.  

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


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