[27870] in Perl-Users-Digest
Perl-Users Digest, Issue: 9234 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri May 19 03:06:00 2006
Date: Fri, 19 May 2006 00:05:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 19 May 2006 Volume: 10 Number: 9234
Today's topics:
Book recommendation? dave_nul@hotmail.com
exit status problem. Fearban@gmail.com
Re: exit status problem. <jurgenex@hotmail.com>
Re: exit status problem. Fearban@gmail.com
new CPAN modules on Fri May 19 2006 (Randal Schwartz)
printing css <nospam@home.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 18 May 2006 06:14:07 -0700
From: dave_nul@hotmail.com
Subject: Book recommendation?
Message-Id: <1147958047.630115.277830@j55g2000cwa.googlegroups.com>
Hi, everyone. I just finished reading an excellent Perl book, Wicked
Cool Perl Scripts. If you like looking at other people's code to see
how they solved problems, this book is the best I've seen.
But the book doesn't cover the Perl debugger, which I find myself using
more and more, and want to get better at, to save time. Any
recommendations for a book that explains how to get the most out of the
Perl debugger?
------------------------------
Date: 18 May 2006 06:14:31 -0700
From: Fearban@gmail.com
Subject: exit status problem.
Message-Id: <1147958071.187118.141230@u72g2000cwu.googlegroups.com>
Hi,
I am calling a perl script. This perl script will exit(9) when finished
processing.
I am calling this script from a borne shell script. I need to catch the
return value.
The following is a simple example.
But i can not catch the "9"
perltest.pl
#!/opt/bin/perl
print("hello\n");
exit 9;
here is the shell script
#!/bin/ksh
var=`perl perltest.pl`
print ${var}
Also how is this done if perl is the calling script.
#!/opt/bin/perl
my $var = 8;
print("$var\n");
$var= system(perl perltest.pl);
print ($var);
Can any one help.?
------------------------------
Date: Thu, 18 May 2006 13:46:53 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: exit status problem.
Message-Id: <hV_ag.5163$_B5.2936@trnddc01>
Fearban@gmail.com wrote:
[...]
> I need to catch
> the return value.
[...]
> $var= system(perl perltest.pl);
> print ($var);
Did you read the documentation for the functions that you are using?
From 'perldoc -f system':
The return value is the exit status of the program as returned
by the "wait" call. To get the actual exit value divide by 256.
jue
------------------------------
Date: 18 May 2006 06:52:16 -0700
From: Fearban@gmail.com
Subject: Re: exit status problem.
Message-Id: <1147960336.497028.56500@i40g2000cwc.googlegroups.com>
I am not getting any value returned ..
------------------------------
Date: Fri, 19 May 2006 04:42:13 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Fri May 19 2006
Message-Id: <IzHx2D.1G86@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
Device-USB-0.13
http://search.cpan.org/~gwadej/Device-USB-0.13/
Use libusb to access USB devices.
----
Number-Tolerant-1.540
http://search.cpan.org/~rjbs/Number-Tolerant-1.540/
tolerance ranges for inexact numbers
----
Bio-Phylo-0.11
http://search.cpan.org/~rvosa/Bio-Phylo-0.11/
Phylogenetic analysis using perl.
----
Linux-Bootloader-1.0
http://search.cpan.org/~bryce/Linux-Bootloader-1.0/
Base class interacting with Linux bootloaders
----
Business-ISMN-1.7
http://search.cpan.org/~bdfoy/Business-ISMN-1.7/
work with International Standard Music Numbers
----
Business-ISBN-Data-1.11
http://search.cpan.org/~bdfoy/Business-ISBN-Data-1.11/
data pack for Business::ISBN
----
Time-UTC-0.001
http://search.cpan.org/~zefram/Time-UTC-0.001/
manipulation of UTC in terms of TAI
----
Math-NoCarry-1.09
http://search.cpan.org/~bdfoy/Math-NoCarry-1.09/
Perl extension for no carry arithmetic
----
Module-CPANTS-Site-0.60
http://search.cpan.org/~domm/Module-CPANTS-Site-0.60/
Catalyst based application
----
Module-CPANTS-ProcessCPAN-0.6
http://search.cpan.org/~domm/Module-CPANTS-ProcessCPAN-0.6/
Generate Kwalitee ratings for the whole CPAN
----
Module-CPANTS-Analyse-0.6
http://search.cpan.org/~domm/Module-CPANTS-Analyse-0.6/
Generate Kwalitee ratings for a distribution
----
Bio-Phylo-0.10
http://search.cpan.org/~rvosa/Bio-Phylo-0.10/
Phylogenetic analysis using perl.
----
Text-RecordParser-v1.2.1
http://search.cpan.org/~kclark/Text-RecordParser-v1.2.1/
read record-oriented files
----
Date-ISO8601-0.000
http://search.cpan.org/~zefram/Date-ISO8601-0.000/
the three ISO 8601 numerical calendars
----
Devel-Cycle-1.05
http://search.cpan.org/~lds/Devel-Cycle-1.05/
Find memory cycles in objects
----
Text-Abbreviate-0.01
http://search.cpan.org/~pinyan/Text-Abbreviate-0.01/
Perl extension for text abbreviations and ambiguities
----
Term-Size-0.201
http://search.cpan.org/~ferreira/Term-Size-0.201/
Perl extension for retrieving terminal size
----
CGI-Application-Plugin-TT-1.03
http://search.cpan.org/~ceeshek/CGI-Application-Plugin-TT-1.03/
Add Template Toolkit support to CGI::Application
----
DBIx-Class-Schema-Loader-0.02999_06
http://search.cpan.org/~blblack/DBIx-Class-Schema-Loader-0.02999_06/
Dynamic definition of a DBIx::Class::Schema
----
URI-Title-1.62
http://search.cpan.org/~tomi/URI-Title-1.62/
get the titles of things on the web in a sensible way
----
DBIx-Jello-1e-05
http://search.cpan.org/~tomi/DBIx-Jello-1e-05/
----
Time-Timestamp-1.01
http://search.cpan.org/~saxjazman/Time-Timestamp-1.01/
Perl extension the easy manipulation of timestamps (subclass of datetime)
----
Catalyst-View-TT-ForceUTF8-0.06
http://search.cpan.org/~lyokato/Catalyst-View-TT-ForceUTF8-0.06/
Template View Class with utf8 encoding
----
Rose-DB-Object-0.726
http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.726/
Extensible, high performance RDBMS-OO mapper.
----
WWW-OpenSearch-0.06_01
http://search.cpan.org/~bricas/WWW-OpenSearch-0.06_01/
Search A9 OpenSearch compatible engines
----
Rose-DB-Object-0.725
http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.725/
Extensible, high performance RDBMS-OO mapper.
----
X11-GUITest-0.21
http://search.cpan.org/~ctrondlp/X11-GUITest-0.21/
Provides GUI testing/interaction facilities.
----
version-0.59_05
http://search.cpan.org/~jpeacock/version-0.59_05/
Perl extension for Version Objects
----
Wx-Perl-FSHandler-UNC-1.008
http://search.cpan.org/~bbc/Wx-Perl-FSHandler-UNC-1.008/
A filesystem handler for UNC filepaths
----
Sub-Slice-1.048
http://search.cpan.org/~bbc/Sub-Slice-1.048/
split long-running tasks into manageable chunks
----
Lingua-MSWordSpell-1.011
http://search.cpan.org/~bbc/Lingua-MSWordSpell-1.011/
Word spellchecker
----
CORBA-IDL-2.46
http://search.cpan.org/~perrad/CORBA-IDL-2.46/
----
KinoSearch-0.11
http://search.cpan.org/~creamyg/KinoSearch-0.11/
search engine library
----
Bio-Phylo-0.09
http://search.cpan.org/~rvosa/Bio-Phylo-0.09/
Phylogenetic analysis using perl.
----
CGI-Application-Plugin-LinkIntegrity-0.06
http://search.cpan.org/~mgraham/CGI-Application-Plugin-LinkIntegrity-0.06/
Make tamper-resisistent links in CGI::Application
----
Apache-iTunes-0.09
http://search.cpan.org/~bdfoy/Apache-iTunes-0.09/
control iTunes from mod_perl
----
Test-Prereq-1.031
http://search.cpan.org/~bdfoy/Test-Prereq-1.031/
check if Makefile.PL has the right pre-requisites
----
FEAR-API-0.485
http://search.cpan.org/~xern/FEAR-API-0.485/
There's no fear with this elegant site scraper
----
GDGraph-1.4308
http://search.cpan.org/~bwarfield/GDGraph-1.4308/
----
Apache-iTunes-0.08
http://search.cpan.org/~bdfoy/Apache-iTunes-0.08/
control iTunes from mod_perl
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Thu, 18 May 2006 23:16:51 GMT
From: "Nospam" <nospam@home.com>
Subject: printing css
Message-Id: <Df7bg.1112$_04.333@newsfe1-gui.ntli.net>
Does anyone know the format for printing css html code with perl I tried
print "<style type="text/css">";
but I received Bareword found where operator expected
... "(Missing operator before text?)
"
------------------------------
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 9234
***************************************