[30686] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1931 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Oct 18 09:09:45 2008

Date: Sat, 18 Oct 2008 06:09:11 -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           Sat, 18 Oct 2008     Volume: 11 Number: 1931

Today's topics:
    Re: "Escape" in perl <hjp-usenet2@hjp.at>
    Re: "Escape" in perl <bill@ts1000.us>
    Re: crisis Perl <hjp-usenet2@hjp.at>
        E-commerce script desired jfbryan@gmail.com
    Re: E-commerce script desired <tim@burlyhost.com>
    Re: E-commerce script desired jfbryan@gmail.com
    Re: E-commerce script desired <vilain@NOspamcop.net>
    Re: E-commerce script desired <tim@burlyhost.com>
    Re: Help: How to install a *.pm module <tadmc@seesig.invalid>
    Re: Need help on AoH or array or any other help I can g <tadmc@seesig.invalid>
    Re: Need help on AoH or array or any other think that m <someone@example.com>
        new CPAN modules on Sat Oct 18 2008 (Randal Schwartz)
    Re: Odd behaviour with has key - wide character <hjp-usenet2@hjp.at>
    Re: SOS: Need help on this script if you can ...million <tadmc@seesig.invalid>
        Usage of perldoc (WAS: "Escape" in perl) <jurgenex@hotmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Sat, 18 Oct 2008 12:01:46 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: "Escape" in perl
Message-Id: <slrngfjd0c.44c.hjp-usenet2@hrunkner.hjp.at>

On 2008-10-16 23:10, Bill H <bill@ts1000.us> wrote:
> The other thought I had, the brute force approach, is to just escape
> every character in the string (ie convert each character to a %??). I
> suppose I could get a little creative and not touch any numbers or
> letters, just everything below ascii 48, above ascii 57 and below
> ascii 65. Above ascii 90 and below ascii 97, and above ascii 122.
> Wonder if there is a regex that could do this for me?

Yes. Search for "character class" in perldoc perlre. Then just translate
what you wrote from English to Regexp.

	hp


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

Date: Sat, 18 Oct 2008 04:23:11 -0700 (PDT)
From: Bill H <bill@ts1000.us>
Subject: Re: "Escape" in perl
Message-Id: <75151be6-6942-406f-b9dc-3c5beb2deb1c@2g2000hsn.googlegroups.com>

On Oct 18, 6:01=A0am, "Peter J. Holzer" <hjp-usen...@hjp.at> wrote:
> On 2008-10-16 23:10, Bill H <b...@ts1000.us> wrote:
>
> > The other thought I had, the brute force approach, is to just escape
> > every character in the string (ie convert each character to a %??). I
> > suppose I could get a little creative and not touch any numbers or
> > letters, just everything below ascii 48, above ascii 57 and below
> > ascii 65. Above ascii 90 and below ascii 97, and above ascii 122.
> > Wonder if there is a regex that could do this for me?
>
> Yes. Search for "character class" in perldoc perlre. Then just translate
> what you wrote from English to Regexp.
>
> =A0 =A0 =A0 =A0 hp

Thanks Peter.

I have been meaning to post a question / request about perldocs on
here but keep forgeting. It would be immensely helpful to me, and no
doubt others on here, to have a good description of how to get
information out of perldocs.

I have fumbled with the perldoc -f and mostly found what I was looking
for, and when I don't I post a question on here and 9 times out of 10
someone will show me how I should have used perldoc (though as an
aside, I was kinda suprised when I did a perldoc -f for and it came up
with nothing on the for loop). Most of the time I usually end up
looking through a printed copy of all the docs (500+ double sided, 2
up pages) that I had printed about 8 years ago.

In this group there is usually 3 or more auto posts a day from the FAQ
and they are on the majority very helpful, I have seen many
duplicates, though, but I have never seen a simple "How do I
find ?????? in perldoc?". If this exists, it would be a great FAQ to
have in the rotation, and possibly weighted so it shows up often. If
it doesn't exist, maybe it should be written and placed in there.

Bill H


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

Date: Sat, 18 Oct 2008 11:53:44 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: crisis Perl
Message-Id: <slrngfjch9.44c.hjp-usenet2@hrunkner.hjp.at>

On 2008-10-16 21:17, xhoster@gmail.com <xhoster@gmail.com> wrote:
> rc <christian.ramseyer@gmail.com> wrote:
>> On Oct 16, 7:14=A0pm, cartercc <carte...@gmail.com> wrote:.
>> > A story: We generate several thousand contracts five times a year,
>> > using a script I wrote. I got a panic call a couple of hours ago
>> > because the data file had the contract amounts all as zeros.
[...]
>> > The reason we were getting
>> > zeros was that the relevant column had been shifted one to the left.
[...]
>> This is a nice example to emphasize the "write good code in the first
>> place" point.
>> Your code probably looked something like this:
>>
>> while(<STDIN>){
>>     my @line  =3D split("/;/");
>>     generate_contract($line[0], $line[3], $line[9]);
>> }
>>
>> By only investing 15 seconds more to write e.g.
>>
>> while(<STDIN>){
>>     my @line  =3D split("/;/");
>>     die("Invalid input line, columns !=3D 10") unless $#line =3D=3D 9;
>>     generate_contract($line[0], $line[3], $line[9]);
>> }
>>
>> you would immediately have seen what the problem is and spared
>> yourself from a panic attack.

Even a simple "use warnings" would probably have spewed out a lot of
"uninitialized value" warnings, which might have alerted the user that
something was wrong (even if he doesn't understand what is wrong).


> If course you have the benefit of already knowing the unknown-at-the-time
> failure mode.  What if two columns were swapped rather than one being
> missing?

Depends. If a numeric column is swapped for a text column, you get
warnings if you try to use the text strings in a calculation. But if you
don't calculate anything, or you swap two numeric columns, perl can't
help you. You need to add plausibility checks yourself. As Jürgen wrote,
CSV files often have a header line, and you can check that. Other checks
might need domain specific knowledge - for example, if a column contains
fractions in percent, you can check that all the values are between 0
and 100. If I'm processing EU trade data, does the file contain data for
each of the 27 countries? And so on.

	hp


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

Date: Fri, 17 Oct 2008 19:32:51 -0700 (PDT)
From: jfbryan@gmail.com
Subject: E-commerce script desired
Message-Id: <63c9040e-b750-4a43-b052-526f0822b704@k7g2000hsd.googlegroups.com>

I am looking for a script (preferably Perl) that will require a
visitor to register (on a web registration page) and then be presented
with various successive affiliate website offers before concluding.


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

Date: Fri, 17 Oct 2008 19:45:29 -0700
From: Tim Greer <tim@burlyhost.com>
Subject: Re: E-commerce script desired
Message-Id: <e5cKk.5045$J54.2049@newsfe19.iad>

jfbryan@gmail.com wrote:

> I am looking for a script (preferably Perl) that will require a
> visitor to register (on a web registration page) and then be presented
> with various successive affiliate website offers before concluding.

Sounds annoying to the users actually, but I'm sure some exist.  Were
you looking to try and hire someone to create such a product for you? 
Have you looked online with your favorite search engine to see what
scripts out there might suit your needs?  Were you just wondering if
this was possible?
-- 
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting.  24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!


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

Date: Fri, 17 Oct 2008 20:03:42 -0700 (PDT)
From: jfbryan@gmail.com
Subject: Re: E-commerce script desired
Message-Id: <18f8928d-8a16-44b8-8465-324d26eeb97f@u75g2000hsf.googlegroups.com>

On Oct 17, 10:45 pm, Tim Greer <t...@burlyhost.com> wrote:
> jfbr...@gmail.com wrote:
> > I am looking for a script (preferably Perl) that will require a
> > visitor to register (on a web registration page) and then be presented
> > with various successive affiliate website offers before concluding.
>
> Sounds annoying to the users actually, but I'm sure some exist.  Were
> you looking to try and hire someone to create such a product for you?
> Have you looked online with your favorite search engine to see what
> scripts out there might suit your needs?  Were you just wondering if
> this was possible?
> --
> Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
> Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
> and Custom Hosting.  24/7 support, 30 day guarantee, secure servers.
> Industry's most experienced staff! -- Web Hosting With Muscle!

Tim:

Thanks for responding.

Actually, I have searched script repositories without success, and, in
fact, I have encountered this functionality at some sites (only I
can't remember where). I am certainly willing to pay for this product
as I intend it for commercial purposes. But since I know it exists, I
am hoping not to have to hire a coder.

Cordially,
James Bryan


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

Date: Fri, 17 Oct 2008 22:07:08 -0700
From: Michael Vilain <vilain@NOspamcop.net>
Subject: Re: E-commerce script desired
Message-Id: <vilain-9A1228.22070817102008@nntp.motzarella.org>

In article 
<63c9040e-b750-4a43-b052-526f0822b704@k7g2000hsd.googlegroups.com>,
 jfbryan@gmail.com wrote:

> I am looking for a script (preferably Perl) that will require a
> visitor to register (on a web registration page) and then be presented
> with various successive affiliate website offers before concluding.

There are ecommerce packages out there, some commercial and some free.  
OScommerce is the one I see offered on web hosting sites.  Many of them 
can be customized to work with your credit card processor.  You want to 
hire a web programmer to find a compatible web hosting company, setup a 
site for you, acquire the software, configure it, and setup the 
eCommerce stuff for you.  Asking for help off news groups isn't going to 
get you very far.

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored]




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

Date: Fri, 17 Oct 2008 22:36:55 -0700
From: Tim Greer <tim@burlyhost.com>
Subject: Re: E-commerce script desired
Message-Id: <XBeKk.5692$4u2.2576@newsfe01.iad>

jfbryan@gmail.com wrote:

> On Oct 17, 10:45 pm, Tim Greer <t...@burlyhost.com> wrote:
>> jfbr...@gmail.com wrote:
>> > I am looking for a script (preferably Perl) that will require a
>> > visitor to register (on a web registration page) and then be
>> > presented with various successive affiliate website offers before
>> > concluding.
>>
>> Sounds annoying to the users actually, but I'm sure some exist.  Were
>> you looking to try and hire someone to create such a product for you?
>> Have you looked online with your favorite search engine to see what
>> scripts out there might suit your needs?  Were you just wondering if
>> this was possible?

> 
> Thanks for responding.
> 
> Actually, I have searched script repositories without success, and, in
> fact, I have encountered this functionality at some sites (only I
> can't remember where). I am certainly willing to pay for this product
> as I intend it for commercial purposes. But since I know it exists, I
> am hoping not to have to hire a coder.
> 

You'd probably have better luck inquiring on a web development newsgroup
or a forum community that revolves around such subjects.  There are
shopping cart scripts, and many web hosts offer them with easily used
interfaces to set them up in a matter of minutes, and you can always
modify them from there, but the sites you may have seen could have been
in-house, custom solutions -- though it might be common and open
source, as it sounds pretty common.
-- 
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting.  24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!


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

Date: Fri, 17 Oct 2008 20:09:05 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Help: How to install a *.pm module
Message-Id: <slrngfidph.61b.tadmc@tadmc30.sbcglobal.net>

Tim Greer <tim@burlyhost.com> wrote:
> Henry Law wrote:
>
>> Tad J McClellan wrote:
>>> Amy Lee <openlinuxsource@gmail.com> wrote:
>>> 
>>>> I download a module for BLAST parsing called "BPlite.pm", however I
>>>> don't know how to install it.
>>> 
>>> 
>>> Here is a radical idea: read the file in the distribution named
>>> "INSTALL"!
>> 
>> And if the distribution doesn't have a file called that? (It doesn't).
>> And if the "distribution" isn't a distribution but just a bare Perl
>> module file?  (It is).
>> 
>  
>
> Isn't this a core module in BioPerl?


That is what I downloaded before replying, so that I could
ensure that it did have an "INSTALL" file.


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


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

Date: Fri, 17 Oct 2008 20:11:29 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Need help on AoH or array or any other help I can get for this task
Message-Id: <slrngfidu1.61b.tadmc@tadmc30.sbcglobal.net>

cyrusgreats@gmail.com <cyrusgreats@gmail.com> wrote:

> foreach my $line (FILE) {
                    ^^^^
>    my ($customer_name, $product_cat, $item_desc, $cost) = split("|",
> $line);
>
>
> what should I do here


You should first get the code that you do have to work...


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


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

Date: Sat, 18 Oct 2008 02:09:15 -0700
From: "John W. Krahn" <someone@example.com>
Subject: Re: Need help on AoH or array or any other think that might help!
Message-Id: <_IhKk.1113$JT3.1060@newsfe03.iad>

J=FCrgen Exner wrote:
> cyrusgreats@gmail.com wrote:
>> Hello good people out there. I need to write a perl script that will
>> parse the log and generate the following output:
>> a flat text file in the following format: customer_name|
>> product_category|item_description|cost
>> An example log file could be:
>> Pedro|groceries|apple|1.42
>> Nitin|tobacco|cigarettes|15.00
>> Susie|groceries|cereal|5.50
>> Susie|groceries|milk|4.75
>> Susie|tobacco|cigarettes|15.00
>> Susie|fuel|gasoline|44.90
>> Pedro|fuel|propane|9.60
>=20
> perldoc -f split:
> 	($customer, $category, undef, $price) =3D split ('|');

The '|' character is special in a regular expresion.  If you want to=20
match a literal '|' character you have to escape it:

	my ( $customer, $category, undef, $price ) =3D split /\|/;

Or:

	my ( $customer, $category, $price ) =3D ( split /\|/ )[0,1,3];



John
--=20
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall


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

Date: Sat, 18 Oct 2008 04:42:22 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sat Oct 18 2008
Message-Id: <K8x3qM.1Ku7@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.

Apache-SWIT-0.39
http://search.cpan.org/~bosu/Apache-SWIT-0.39/
mod_perl based application server with integrated testing. 
----
Apache-SWIT-Security-0.04
http://search.cpan.org/~bosu/Apache-SWIT-Security-0.04/
security subsystem for Apache::SWIT 
----
App-Hachero-0.01_02
http://search.cpan.org/~danjou/App-Hachero-0.01_02/
a plaggable log analyzing framework 
----
App-ZofCMS-Plugin-NavMaker-0.0102
http://search.cpan.org/~zoffix/App-ZofCMS-Plugin-NavMaker-0.0102/
ZofCMS plugin for making navigation bars 
----
CAD-Format-STL-v0.0.1
http://search.cpan.org/~ewilhelm/CAD-Format-STL-v0.0.1/
read/write 3D stereolithography files 
----
CPAN-WWW-Testers-0.36
http://search.cpan.org/~barbie/CPAN-WWW-Testers-0.36/
Present CPAN Testers data 
----
Catalyst-Runtime-5.8000_03
http://search.cpan.org/~mramberg/Catalyst-Runtime-5.8000_03/
The Catalyst Framework Runtime 
----
Config-JSON-1.2.0
http://search.cpan.org/~apeiron/Config-JSON-1.2.0/
A JSON based config file system. 
----
Crypt-SEED-0.01
http://search.cpan.org/~jpjeon/Crypt-SEED-0.01/
Perl extension for SEED encryption/decryption algorithm. 
----
FLV-Info-0.22
http://search.cpan.org/~cdolan/FLV-Info-0.22/
Extract metadata from Adobe Flash Video files 
----
Filter-SQL-0.09
http://search.cpan.org/~kazuho/Filter-SQL-0.09/
embedded SQL for perl 
----
Geo-CountryFlags-1.01
http://search.cpan.org/~miker/Geo-CountryFlags-1.01/
dynamically fetch flag gif's from CIA 
----
HTML-Accessors-0.1.42
http://search.cpan.org/~pjfl/HTML-Accessors-0.1.42/
Generate HTML elements 
----
HTML-Tested-0.43
http://search.cpan.org/~bosu/HTML-Tested-0.43/
Provides HTML widgets with the built-in means of testing. 
----
HTML-Tested-0.44
http://search.cpan.org/~bosu/HTML-Tested-0.44/
Provides HTML widgets with the built-in means of testing. 
----
HTTP-MobileAgent-Plugin-Locator-0.02
http://search.cpan.org/~kurihara/HTTP-MobileAgent-Plugin-Locator-0.02/
Handling mobile location information plugin for HTTP::MobileAgent 
----
Lingua-JA-Regular-Unicode-0.01_01
http://search.cpan.org/~tokuhirom/Lingua-JA-Regular-Unicode-0.01_01/
convert japanese chars. 
----
Module-Setup-0.04
http://search.cpan.org/~yappo/Module-Setup-0.04/
a simple module maker "yet another Module::Start(?:er)?" 
----
MooseX-Control-0.01
http://search.cpan.org/~fayland/MooseX-Control-0.01/
Simple class to manage a execute deamon 
----
MooseX-Control-0.02
http://search.cpan.org/~fayland/MooseX-Control-0.02/
Simple class to manage a execute deamon 
----
MooseX-Control-0.03
http://search.cpan.org/~fayland/MooseX-Control-0.03/
Simple class to manage a execute deamon 
----
MooseX-MutatorAttributes-0.10
http://search.cpan.org/~notbenh/MooseX-MutatorAttributes-0.10/
Moose Role to add a quick set method that returns self 
----
MooseX-Scaffold-0.01
http://search.cpan.org/~rkrimen/MooseX-Scaffold-0.01/
Template metaprogramming with Moose 
----
MooseX-Scaffold-0.02
http://search.cpan.org/~rkrimen/MooseX-Scaffold-0.02/
Template metaprogramming with Moose 
----
MooseX-Scaffold-0.03
http://search.cpan.org/~rkrimen/MooseX-Scaffold-0.03/
Template metaprogramming with Moose 
----
Munin-Node-Client-0.01
http://search.cpan.org/~sebastian/Munin-Node-Client-0.01/
Client module for munin nodes. 
----
Net-Stitcho-0.01
http://search.cpan.org/~melo/Net-Stitcho-0.01/
Client module for the Stitcho.com API 
----
NetAddr-IP-4.012
http://search.cpan.org/~miker/NetAddr-IP-4.012/
Manages IPv4 and IPv6 addresses and subnets 
----
Object-InsideOut-3.49
http://search.cpan.org/~jdhedden/Object-InsideOut-3.49/
Comprehensive inside-out object support module 
----
POEIKC-Plugin-GlobalQueue-0.00_01
http://search.cpan.org/~suzuki/POEIKC-Plugin-GlobalQueue-0.00_01/
POE and IKC based queue server. 
----
Perlbal-Control-0.01
http://search.cpan.org/~fayland/Perlbal-Control-0.01/
The great new Perlbal::Control! 
----
Perlbal-Control-0.02
http://search.cpan.org/~fayland/Perlbal-Control-0.02/
Simple class to manage perlbal 
----
Postfix-Parse-Mailq-1.000
http://search.cpan.org/~rjbs/Postfix-Parse-Mailq-1.000/
parse the output of the postfix mailq command 
----
RT-Authen-ExternalAuth-0.06_01
http://search.cpan.org/~falcone/RT-Authen-ExternalAuth-0.06_01/
RT Authentication using External Sources 
----
RT-Authen-ExternalAuth-0.06_02
http://search.cpan.org/~falcone/RT-Authen-ExternalAuth-0.06_02/
RT Authentication using External Sources 
----
SVN-Class-0.09
http://search.cpan.org/~karman/SVN-Class-0.09/
manipulate Subversion workspaces with Perl objects 
----
SVN-Dumpfile-0.13.105
http://search.cpan.org/~mscharrer/SVN-Dumpfile-0.13.105/
Perl extension to access and manipulate Subversion dumpfiles 
----
Sphinx-Control-0.04
http://search.cpan.org/~fayland/Sphinx-Control-0.04/
Simple class to manage a Sphinx searchd 
----
String-IRC-0.03
http://search.cpan.org/~hirose/String-IRC-0.03/
add color codes for mIRC compatible client 
----
Text-Metaphone-20081017
http://search.cpan.org/~mschwern/Text-Metaphone-20081017/
A modern soundex. Phonetic encoding of words. 
----
WWW-Blogger-2008.1017
http://search.cpan.org/~ermeyers/WWW-Blogger-2008.1017/
Blogger Development Interface (BDI) 
----
WWW-Contact-0.03
http://search.cpan.org/~fayland/WWW-Contact-0.03/
Get contacts/addressbook from Web 
----
WWW-Domain-Registry-Joker-0.07
http://search.cpan.org/~roam/WWW-Domain-Registry-Joker-0.07/
an interface to the Joker.com DMAPI 
----
WWW-Mechanize-Plugin-Ajax-0.05
http://search.cpan.org/~sprout/WWW-Mechanize-Plugin-Ajax-0.05/
WWW::Mechanize plugin that provides the XMLHttpRequest object 
----
XML-Handler-ExtOn-0.05
http://search.cpan.org/~zag/XML-Handler-ExtOn-0.05/
The handler for expansion of Perl SAX by objects. 
----
indirect-0.07_03
http://search.cpan.org/~vpit/indirect-0.07_03/
Lexically warn about using the indirect object syntax. 


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.

This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
  http://www.stonehenge.com/merlyn/LinuxMag/col82.html

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/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


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

Date: Sat, 18 Oct 2008 11:14:22 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: Odd behaviour with has key - wide character
Message-Id: <slrngfja7f.44c.hjp-usenet2@hrunkner.hjp.at>

On 2008-10-13 14:51, Jon Combe <jcombe@gmail.com> wrote:
>> you're running into version string. Since 5.8, perl handles
>> vX.Y.Z... where X Y and Z are numbers specially (this is considered a
>> failed experiment by many people).
[...]
>> Note that even using => will not work correctly at 5.8.0: you should
>> really upgrade your perl if you've got that version, since it has lots
>> of bugs.
>
> Thank you Joost. I tried with the quoting operator (=>) as you
> suggested but it didn't work, but this is because I do have Perl
> 5.8.0.

Redhat Enterprise Linux 3?

> Sadly I am not the administrator of the system so I don't think
> that I will be able to change it.

If the system has a C compiler installed you could compile your own
version of perl and install it in $HOME/bin. That may not be practical
if other users are supposed to use your scripts, though. In this case
you could ask the sysadmin to upgrade the system or let you install a
newer version of perl in some publicly accessible place (like
/opt/perl5.10.0 or /usr/local/perl5.10.0).

> I cannot find any mention of "Version Strings" in the perldata
> documentation. Is that the correct page or was it not documented in
> 5.8.0?

It is the correct page and it was documented in 5.8.0, but the feature
wasn't called "version strings". Search for "v-strings" instead.

	hp



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

Date: Fri, 17 Oct 2008 20:13:51 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: SOS: Need help on this script if you can ...million thanks in advance
Message-Id: <slrngfie2f.61b.tadmc@tadmc30.sbcglobal.net>

cyrusgreats@gmail.com <cyrusgreats@gmail.com> wrote:

> what should I do here


You should repeat your post a few dozen more times.


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


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

Date: Sat, 18 Oct 2008 06:05:24 -0700
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Usage of perldoc (WAS: "Escape" in perl)
Message-Id: <d3mjf419m7bq5cpledci0sndckf1lnmuiu@4ax.com>

Bill H <bill@ts1000.us> wrote:
>I have been meaning to post a question / request about perldocs on
>here but keep forgeting. It would be immensely helpful to me, and no
>doubt others on here, to have a good description of how to get
>information out of perldocs.

Well, as always there is a perldoc entry specifically for that, see
'perldoc perldoc' and maybe even more important 'perldoc perl'. :-))

But seriously, you have a very valid point. If you know what you are
looking for or if you have a strong background in computer science then
perldoc is ok to great. If you are just a casual user without formal
computer science education then the structure often seem arbitrary and
information scattered in odd places (heck, that even applies if you do
have a CS degree). 
Now, while recognizing this as a problem, I don't have a real solution,
either. The only suggestion I have is to familiarize yourself with them.
That does _NOT_ mean to memorize all of it, but rather to learn about
the general structure, develop an understanding of where you are likely
to find some pointers, and what information is available about which
topics: oh, there is a perlretut (Perl regular expression tutorial) and
a perlreftut (reference tutorial) and a even a perlipc. Most likely you
are not interested in IPC when reading the perldoc index. However this
tidbit of information hopefully gets stuck in your brain, so that when
you do need information about IPC you remember that there was a perldoc
module about IPC and you can go back and actually read it this time.

>I have fumbled with the perldoc -f and mostly found what I was looking
>for, and when I don't I post a question on here and 9 times out of 10
>someone will show me how I should have used perldoc (though as an
>aside, I was kinda suprised when I did a perldoc -f for and it came up
>with nothing on the for loop). 

That's what I meant with Computer Science background: 'for' is not a
function, it is core language syntax. You will find it in 'perldoc
perlsyn'. 

>Most of the time I usually end up
>looking through a printed copy of all the docs (500+ double sided, 2
>up pages) that I had printed about 8 years ago.

That IMO is a rather poor idea. You got everything online sitting right
there on your own computer. Use the power of the force, aehhmm, the
computer to search and hopefully find the information you need. It would
also be the accurate information for the version of Perl you are using
isntead of some outdated version for some outdated Perl without all the
bug fixes that went into it since the new millenium.

Also one way that sometimes works is to grep for a key word in the
perldoc source files. That may give you a pointer to the file/perldoc
manual that contains more information about a topic.

>In this group there is usually 3 or more auto posts a day from the FAQ
>and they are on the majority very helpful, I have seen many
>duplicates, though, but I have never seen a simple "How do I
>find ?????? in perldoc?". If this exists, it would be a great FAQ to
>have in the rotation, and possibly weighted so it shows up often. If
>it doesn't exist, maybe it should be written and placed in there.

Now, that's a great idea. I just don't know the answer to that FAQ,
otherwise I would write it. :-)

jue


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

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 V11 Issue 1931
***************************************


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