[30308] in Perl-Users-Digest
Perl-Users Digest, Issue: 1551 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat May 17 14:09:44 2008
Date: Sat, 17 May 2008 11:09:09 -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, 17 May 2008 Volume: 11 Number: 1551
Today's topics:
Re: FAQ 4.47 How do I handle circular lists? <hjp-usenet2@hjp.at>
I need ideas on how to sort 350 million lines of data chadda@lonemerchant.com
Re: I need ideas on how to sort 350 million lines of da <vk4tec@people.net.au>
Re: I need ideas on how to sort 350 million lines of da chadda@lonemerchant.com
Re: I need ideas on how to sort 350 million lines of da chadda@lonemerchant.com
Re: Need ideas on how to make this code faster than a s <ben@morrow.me.uk>
Re: Need ideas on how to make this code faster than a s <spamtrap@dot-app.org>
new CPAN modules on Sat May 17 2008 (Randal Schwartz)
Problems with GetOpt <prich@earthlink.net>
Re: Problems with GetOpt <dirk.heinrichs@online.de>
Strawberry <rahim.g.fakir@gmail.com>
Re: Strawberry <brian.d.foy@gmail.com>
Re: Strawberry <wahab-mail@gmx.de>
Re: Strawberry <1usa@llenroc.ude.invalid>
Re: Strawberry <jurgenex@hotmail.com>
Re: Strawberry <sisyphus359@gmail.com>
Re: write 10 files <1usa@llenroc.ude.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 17 May 2008 14:50:21 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: FAQ 4.47 How do I handle circular lists?
Message-Id: <slrng2tl4d.vvg.hjp-usenet2@hrunkner.hjp.at>
On 2008-05-14 09:09, sheinrich@my-deja.com <sheinrich@my-deja.com> wrote:
> On May 13, 3:11 pm, "John W. Krahn" <some...@example.com> wrote:
>> sheinr...@my-deja.com wrote:
>> > $index = ++$index % $asize;
>>
>> perldoc perlop
>>
>> [ SNIP ]
>>
>> Note that just as in C, Perl doesn’t define when the variable is
>> incremented or decremented. You just know it will be done sometime
>> before or after the value is returned. This also means that
>> modifying a variable twice in the same statement will lead to
>> undefined behaviour. Avoid statements like:
>>
>> $i = $i ++;
>> print ++ $i + $i ++;
>>
>> Perl will not guarantee what the result of the above statements is.
>>
>> So don't do that. Do this instead:
>>
>> $index = ( $index + 1 ) % $asize;
>>
>
> "You just know it will be done sometime before or after the value is
> returned."
>
> I've been reading that as 'sometime before' in case of a preincrement,
> 'after' for a postincrement.
>
> In which case my
> $index = ++$index % $asize;
>
> looks fairly safe.
It may not be.
> IMHO the expression above can result in an error only, if the
> increment is first computed and returned and is assigned to $index
> only after the modulo operation or even after the explicit assignment.
Right. The compiler could produce something like:
$tmp1 = $index + 1
$tmp2 = $tmp1 % $asize
$index = $tmp2
$index = $tmp1
> You may be right in that this can really happen. But then it's a very
> strange behaviour indeed.
Not that strange for compilers which produce code for real CPUs (which
often have very strange timing requirements). I wouldn't really expect
it from a simple bytecode-generating compiler like perl's.
The warning that the execution order is undefined comes from C. But in C
this is a consequence of the concept of "sequence points". The language
defines certain points (e.g., the end of each statement, each function
call, etc.) where each previous operation must be finished and no
subsequent operation must have begun. between two sequence points the
compiler can reorder operations at will. There are two rules about
modifying values:
1) You can modify an object[1] only once between two sequence points
2) If you modify an object, you can only read it to compute the new
value.
But Perl doesn't have the concept of sequence points, and there is no
general prohibition agains modifying the same object twice in a
statement, just against using the increment and decrement operators.
That does stand out as an odd exception. IMHO Perl should either define
an execution order (which could be a partial order) or adopt a more
generic concept like that of C.
>
> I've been using the autoincrement out of habit and for performance
> considerations
Surprisingly,
$index = ++$index % $asize;
is really about 40 % faster than
$index = ( $index + 1 ) % $asize;
I had not expected this. Apparently creating a constant IV is a
relatively expensive operation (well, it takes about 36 nanoseconds on
my PC, so "relatively expensive" is, er, relative).
hp
------------------------------
Date: Sat, 17 May 2008 08:21:21 -0700 (PDT)
From: chadda@lonemerchant.com
Subject: I need ideas on how to sort 350 million lines of data
Message-Id: <1c6aca8c-f1ac-4113-b643-39855cc0d9f5@t12g2000prg.googlegroups.com>
I have roughly 350 million lines of data in the following form
name, price, weight, brand, sku, upc, size
sitting on my home PC.
Is there some kind of sane way to sort this without taking up too much
ram or jacking up my limited CPU time?
------------------------------
Date: Sun, 18 May 2008 01:49:51 +1000
From: "Andrew Rich" <vk4tec@people.net.au>
Subject: Re: I need ideas on how to sort 350 million lines of data
Message-Id: <482efea2$1_7@news.peopletelecom.com.au>
What operating system ?
I would throw it into MySQL
<chadda@lonemerchant.com> wrote in message
news:1c6aca8c-f1ac-4113-b643-39855cc0d9f5@t12g2000prg.googlegroups.com...
>I have roughly 350 million lines of data in the following form
>
> name, price, weight, brand, sku, upc, size
>
> sitting on my home PC.
>
> Is there some kind of sane way to sort this without taking up too much
> ram or jacking up my limited CPU time?
------------------------------
Date: Sat, 17 May 2008 08:56:30 -0700 (PDT)
From: chadda@lonemerchant.com
Subject: Re: I need ideas on how to sort 350 million lines of data
Message-Id: <7d7aec28-bb82-4bbc-ae7b-16386227b1ab@v26g2000prm.googlegroups.com>
On May 17, 8:49=A0am, "Andrew Rich" <vk4...@people.net.au> wrote:
> What operating system ?
>
> I would throw it into MySQL
>
> <cha...@lonemerchant.com> wrote in message
>
> news:1c6aca8c-f1ac-4113-b643-39855cc0d9f5@t12g2000prg.googlegroups.com...
>
>
>
> >I have roughly 350 million lines of data in the following form
>
> > name, price, weight, brand, sku, upc, size
>
> > sitting on my home PC.
>
> > Is there some kind of sane way to sort this without taking up too much
> > ram or jacking up my limited CPU time?- Hide quoted text -
>
> - Show quoted text -
At the risk of sounding like a total dumba--, is it' possible to
upload a .cvs file directly into mysql?
------------------------------
Date: Sat, 17 May 2008 09:00:55 -0700 (PDT)
From: chadda@lonemerchant.com
Subject: Re: I need ideas on how to sort 350 million lines of data
Message-Id: <b8469524-85f7-4b0f-84bf-2e3e833b40f2@p25g2000pri.googlegroups.com>
On May 17, 8:56=A0am, cha...@lonemerchant.com wrote:
> On May 17, 8:49=A0am, "Andrew Rich" <vk4...@people.net.au> wrote:
>
>
>
>
>
> > What operating system ?
>
> > I would throw it into MySQL
>
> > <cha...@lonemerchant.com> wrote in message
>
> >news:1c6aca8c-f1ac-4113-b643-39855cc0d9f5@t12g2000prg.googlegroups.com...=
>
> > >I have roughly 350 million lines of data in the following form
>
> > > name, price, weight, brand, sku, upc, size
>
> > > sitting on my home PC.
>
> > > Is there some kind of sane way to sort this without taking up too much=
> > > ram or jacking up my limited CPU time?- Hide quoted text -
>
> > - Show quoted text -
>
> At the risk of sounding like a total dumba--, is it' possible to
> upload a .cvs file directly into mysql?- Hide quoted text -
>
> - Show quoted text -
Never mind. I can google the answer. Thanks.
------------------------------
Date: Sat, 17 May 2008 10:03:09 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Need ideas on how to make this code faster than a speeding turtle
Message-Id: <djj2g5-ou1.ln1@osiris.mauzo.dyndns.org>
Quoth Jürgen Exner <jurgenex@hotmail.com>:
> "Gordon Etly" <g.etly@bentsys.INVALID.com> wrote:
> >Keith Keller wrote:
> >> On 2008-05-16, Gordon Etly <g.etly@bentsys.INVALID.com> wrote:
> >> There is no "Name" field. The From: header often includes both a name
> >> and an email address.
> >
> >Many readers separate the "name" and "email" fields.
>
> Nonsense. There is a From header. And maybe a ReplyTo header. And maybe
> a FollowupTo header. But there is no such thing as a "Name" or an
> "Email" header field in the first place.
+-------------------+ .:\:\:/:/:.
| PLEASE DO NOT | :.:\:\:/:/:.:
| FEED THE TROLLS | :=.' - - '.=:
| | '=(\ 9 9 /)='
| Thank you, | ( (_) )
| Management | /`-vvv-'\
+-------------------+ / \
| | @@@ / /|,,,,,|\ \
| | @@@ /_// /^\ \\_\
@x@@x@ | | |/ WW( ( ) )WW
\||||/ | | \| __\,,\ /,,/__
\||/ | | | (______Y______)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
==================================================================
Ben
--
Joy and Woe are woven fine,
A Clothing for the Soul divine William Blake
Under every grief and pine 'Auguries of Innocence'
Runs a joy with silken twine. ben@morrow.me.uk
------------------------------
Date: Sat, 17 May 2008 13:36:14 -0400
From: Sherman Pendley <spamtrap@dot-app.org>
Subject: Re: Need ideas on how to make this code faster than a speeding turtle
Message-Id: <m1wslsq1dd.fsf@dot-app.org>
"Gordon Etly" <g.etly@bentsys.INVALID.com> writes:
> One does not have to use the same email address. One is free to change
> that to what ever they wish.
One is also free to fart in an elevator whenever one wishes.
The point being, not everything that's allowed is polite. Most of us learned
manners in grade school - please try to catch up.
sherm--
--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
------------------------------
Date: Sat, 17 May 2008 04:42:19 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sat May 17 2008
Message-Id: <K0zx2J.1GIG@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.
Acme-Sub-Parms-1.01
http://search.cpan.org/~snowhare/Acme-Sub-Parms-1.01/
Provides simple, fast parsing of named subroutine parameters
----
Acme-nicde-0.01
http://search.cpan.org/~schwigon/Acme-nicde-0.01/
----
Algorithm-CheckDigits-0.49
http://search.cpan.org/~mamawe/Algorithm-CheckDigits-0.49/
Perl extension to generate and test check digits
----
Apache2-AuthEnv-1.0
http://search.cpan.org/~arif/Apache2-AuthEnv-1.0/
Perl Authentication and Authorisation via Environment Variables.
----
Archive-Unzip-Burst-0.02_02
http://search.cpan.org/~smueller/Archive-Unzip-Burst-0.02_02/
Featureless but fast ZIP extraction
----
CGI-Simple-1.105
http://search.cpan.org/~andya/CGI-Simple-1.105/
A Simple totally OO CGI interface that is CGI.pm compliant
----
CPAN-Reporter-Smoker-0.10
http://search.cpan.org/~dagolden/CPAN-Reporter-Smoker-0.10/
Turnkey CPAN Testers smoking
----
Carp-REPL-0.12
http://search.cpan.org/~sartak/Carp-REPL-0.12/
read-eval-print-loop on die and/or warn
----
Catalyst-Manual-5.7011
http://search.cpan.org/~zarquon/Catalyst-Manual-5.7011/
The Catalyst developer's manual
----
Catalyst-Plugin-AutoRestart-0.90
http://search.cpan.org/~jgoulah/Catalyst-Plugin-AutoRestart-0.90/
Catalyst plugin to restart every 'n' requests
----
Class-Delegation-Simple-0.02
http://search.cpan.org/~johnd/Class-Delegation-Simple-0.02/
Simple delegation for Perl
----
Class-Std-Fast-v0.0.7
http://search.cpan.org/~acid/Class-Std-Fast-v0.0.7/
faster but less secure than Class::Std
----
Class-Std-Fast_XS-0.1
http://search.cpan.org/~mkutter/Class-Std-Fast_XS-0.1/
speed up Class::Std::Fast by adding some XS code
----
Config-Multi-0.01
http://search.cpan.org/~tomyhero/Config-Multi-0.01/
load multiple config files.
----
Dowse-BadSSH-0.05
http://search.cpan.org/~samv/Dowse-BadSSH-0.05/
----
Dowse-BadSSH-0.06
http://search.cpan.org/~samv/Dowse-BadSSH-0.06/
----
Dowse-BadSSH-0.07
http://search.cpan.org/~samv/Dowse-BadSSH-0.07/
----
Event-1.11
http://search.cpan.org/~jprit/Event-1.11/
Event loop processing
----
FTN-Pkt-1.02
http://search.cpan.org/~keu/FTN-Pkt-1.02/
a module to make FTN-style mail packets
----
File-DigestStore-1.002
http://search.cpan.org/~mooli/File-DigestStore-1.002/
Digested hierarchical storage of files
----
Games-RolePlay-MapGen-1.2.10
http://search.cpan.org/~jettero/Games-RolePlay-MapGen-1.2.10/
The base object for generating dungeons and maps
----
Ganglia-Gmetric-XS-0.01
http://search.cpan.org/~hirose/Ganglia-Gmetric-XS-0.01/
send a metric value to gmond with libganglia C library
----
HTML-Accessors-0.1.20
http://search.cpan.org/~pjfl/HTML-Accessors-0.1.20/
Generate HTML elements
----
HTML-Accessors-0.1.22
http://search.cpan.org/~pjfl/HTML-Accessors-0.1.22/
Generate HTML elements
----
HTML-WikiConverter-0.62
http://search.cpan.org/~diberri/HTML-WikiConverter-0.62/
Convert HTML to wiki markup
----
Hash-Util-FieldHash-Compat-0.03
http://search.cpan.org/~nuffin/Hash-Util-FieldHash-Compat-0.03/
Use Hash::Util::FieldHash or ties, depending on availability.
----
Kephra-0.3.9.9
http://search.cpan.org/~lichtkind/Kephra-0.3.9.9/
crossplatform, CPAN-installable GUI-Texteditor along perllike Paradigms
----
MOBY-1.04
http://search.cpan.org/~ekawas/MOBY-1.04/
API for hosting and/or communicating with a MOBY Central registry
----
MOBY-Client-1.02
http://search.cpan.org/~ekawas/MOBY-Client-1.02/
----
Net-uFTP-0.111
http://search.cpan.org/~strzelec/Net-uFTP-0.111/
Universal interface for FTP-like modules (FTP, SFTP, SCP), in most cases Net::FTP compatible.
----
Object-InsideOut-3.41
http://search.cpan.org/~jdhedden/Object-InsideOut-3.41/
Comprehensive inside-out object support module
----
PPIx-IndexOffsets-0.32
http://search.cpan.org/~lbrocard/PPIx-IndexOffsets-0.32/
Index offsets for tokens in PPI
----
PerlIO-Util-0.12
http://search.cpan.org/~gfuji/PerlIO-Util-0.12/
A selection of general PerlIO utilities
----
Pg-Pcurse-0.14
http://search.cpan.org/~ioannis/Pg-Pcurse-0.14/
Monitors a Postgres cluster
----
Pg-Pcurse-0.15
http://search.cpan.org/~ioannis/Pg-Pcurse-0.15/
Monitors a Postgres cluster
----
SOAP-WSDL-2.00.02
http://search.cpan.org/~mkutter/SOAP-WSDL-2.00.02/
SOAP with WSDL support
----
Socket-Class-1.21
http://search.cpan.org/~chrmue/Socket-Class-1.21/
A class to communicate with sockets
----
Test-POE-Client-TCP-0.02
http://search.cpan.org/~bingos/Test-POE-Client-TCP-0.02/
A POE Component providing TCP client services for test cases
----
Test-POE-Server-TCP-0.08
http://search.cpan.org/~bingos/Test-POE-Server-TCP-0.08/
A POE Component providing TCP server services for test cases
----
Unix-SavedIDs-0.4.0
http://search.cpan.org/~dmartin/Unix-SavedIDs-0.4.0/
interface to unix saved id commands: getresuid(), getresgid(), setresuid() and setresgid()
----
Unix-SavedIDs-0.4.1
http://search.cpan.org/~dmartin/Unix-SavedIDs-0.4.1/
interface to unix saved id commands: getresuid(), getresgid(), setresuid() and setresgid()
----
WWW-MobileCarrierJP-0.15
http://search.cpan.org/~tokuhirom/WWW-MobileCarrierJP-0.15/
scrape mobile carrier information
----
WWW-Search-PubMedLite-0.01
http://search.cpan.org/~diberri/WWW-Search-PubMedLite-0.01/
Access PubMed's database of journal articles
----
WebService-Google-Language-0.01
http://search.cpan.org/~hma/WebService-Google-Language-0.01/
Perl interface to the Google AJAX Language API
----
Zucchini-0.0.5
http://search.cpan.org/~chisel/Zucchini-0.0.5/
turn templates into static websites
----
autobox-Closure-Attributes-0.03
http://search.cpan.org/~sartak/autobox-Closure-Attributes-0.03/
closures are objects are closures
----
mylib-0.01
http://search.cpan.org/~gaas/mylib-0.01/
add private lib to the module search path
----
mylib-0.02
http://search.cpan.org/~gaas/mylib-0.02/
add private lib to the module search path
----
openStatisticalServices-0.011
http://search.cpan.org/~rphaney/openStatisticalServices-0.011/
----
threads-shared-1.21
http://search.cpan.org/~jdhedden/threads-shared-1.21/
Perl extension for sharing data structures between threads
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, 17 May 2008 09:38:08 -0700
From: Paul Richardson <prich@earthlink.net>
Subject: Problems with GetOpt
Message-Id: <1211049328_19468@news.usenet.com>
I am trying have following perl code:
#!/usr/bin/perl
#
# Options for this script
# -c : compile only don't simulate
# -gui: invoke simulator with the gui
#
use lib '/usr/lib/perl5/5.8.5/Getopt';
use Getopt::Long;
#
my $alternate_dot_vf_file = '';
#
GetOptions('f=s' => \$alternate_dot_vf_file);
print "Printing vf file \n";
print $alternate_dot_vf_file;
die;
My expectation would have been that if I invoked this code "lets call
it hack" as follows:
hack --f someRandomFileName
I would have got print out that said:
Printing vf file
someRandonFileName
I am using the is my spefication to GetOptions incorrect ?
Thanks in advance
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
http://www.usenet.com
------------------------------
Date: Sat, 17 May 2008 18:51:57 +0200
From: Dirk Heinrichs <dirk.heinrichs@online.de>
Subject: Re: Problems with GetOpt
Message-Id: <g0n2fd$297$1@online.de>
Paul Richardson wrote:
> I am trying have following perl code:
>
> #!/usr/bin/perl
> #
> # Options for this script
> # -c : compile only don't simulate
> # -gui: invoke simulator with the gui
> #
> use lib '/usr/lib/perl5/5.8.5/Getopt';
What's this good for?
> use Getopt::Long;
> #
> my $alternate_dot_vf_file = '';
> #
> GetOptions('f=s' => \$alternate_dot_vf_file);
> print "Printing vf file \n";
> print $alternate_dot_vf_file;
Looks good, except for missing '. "\n"' at the end of last line.
> die;
Why "die" when there is no error? Better "exit (0)".
> My expectation would have been that if I invoked this code "lets call
> it hack" as follows:
>
> hack --f someRandomFileName
>
> I would have got print out that said:
> Printing vf file
> someRandonFileName
And what do you get?
> I am using the is my spefication to GetOptions incorrect ?
Yes.
Bye...
Dirk
------------------------------
Date: Sat, 17 May 2008 02:05:28 -0700 (PDT)
From: sanozuke <rahim.g.fakir@gmail.com>
Subject: Strawberry
Message-Id: <6f239e6a-21e8-4b07-a2f3-c1082a18789c@a70g2000hsh.googlegroups.com>
I have a Windows Xp and use Strawberry the think is the hello word
doesn't work, and then the others programs as well.
I do "perl filename.pl" in the command line and it gives a error
unknow shell command.
Don't know what to do.
Ray
------------------------------
Date: Sat, 17 May 2008 12:05:40 +0200
From: brian d foy <brian.d.foy@gmail.com>
Subject: Re: Strawberry
Message-Id: <170520081205409379%brian.d.foy@gmail.com>
In article
<6f239e6a-21e8-4b07-a2f3-c1082a18789c@a70g2000hsh.googlegroups.com>,
sanozuke <rahim.g.fakir@gmail.com> wrote:
> I have a Windows Xp and use Strawberry the think is the hello word
> doesn't work, and then the others programs as well.
> I do "perl filename.pl" in the command line and it gives a error
> unknow shell command.
As with any other command, the path to it must be in the Windows search
path. Can you execute the program with the full path to perl?
C:/path/to/perl script.pl
------------------------------
Date: Sat, 17 May 2008 13:05:37 +0200
From: Mirco Wahab <wahab-mail@gmx.de>
Subject: Re: Strawberry
Message-Id: <g0mfr0$f2a$1@mlucom4.urz.uni-halle.de>
brian d foy wrote:
> sanozuke <rahim.g.fakir@gmail.com> wrote:
>> I have a Windows Xp and use Strawberry the think is the hello word
>> doesn't work, and then the others programs as well.
>> I do "perl filename.pl" in the command line and it gives a error
>> unknow shell command.
>
> As with any other command, the path to it must be in the Windows search
> path. Can you execute the program with the full path to perl?
>
> C:/path/to/perl script.pl
The actual Strawberry 5.10.x (exe-installer) version
puts itself into %SystemDrive%\strawberry\perl\bin and
adds two locations to the Windows path (e.g., if the
system drive is C):
C:\strawberry\perl\bin;C:\strawberry\c\bin;
During the install, there is no option to
modify or to skip that step. Maybe there's
only a reboot of the Windows XP required.
Regards
Mirco
------------------------------
Date: Sat, 17 May 2008 12:20:51 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Strawberry
Message-Id: <Xns9AA154EA03ED2asu1cornelledu@127.0.0.1>
Mirco Wahab <wahab-mail@gmx.de> wrote in
news:g0mfr0$f2a$1@mlucom4.urz.uni-halle.de:
> brian d foy wrote:
>> sanozuke <rahim.g.fakir@gmail.com> wrote:
>>> I have a Windows Xp and use Strawberry the think is the hello word
>>> doesn't work, and then the others programs as well.
>>> I do "perl filename.pl" in the command line and it gives a error
>>> unknow shell command.
>>
>> As with any other command, the path to it must be in the Windows
>> search path. Can you execute the program with the full path to perl?
>>
>> C:/path/to/perl script.pl
>
> The actual Strawberry 5.10.x (exe-installer) version
> puts itself into %SystemDrive%\strawberry\perl\bin and
> adds two locations to the Windows path (e.g., if the
> system drive is C):
>
> C:\strawberry\perl\bin;C:\strawberry\c\bin;
>
> During the install, there is no option to
> modify or to skip that step. Maybe there's
> only a reboot of the Windows XP required.
A reboot should not be necessary but changes in environment variables will
not be propagated to already open cmd.exe windows.
Out of curiosity, I downloaded Strawberry Perl. I was a little
disappointed that it would not let me install in a different location (I
put certain stuff in c:\opt to avoid paths with spaces) but I guess I
could live with that.
The installer put
C:\strawberry\perl\bin;C:\strawberry\c\bin;
at the end of %PATH%. Well, that is not going to work for me (I have quite
a few Perl installations at the moment). So, I fired up a cmd prompt:
C:\Temp> set PATH=C:\strawberry\c\bin;C:\strawberry\perl\bin;%path%
C:\Temp> perl -V
...
Built under MSWin32
Compiled at Apr 17 2008 11:36:20
@INC:
C:/strawberry/perl/lib
C:/strawberry/perl/site/lib
.
It looks like I am set.
C:\Temp> perl -e "print qq{Hello World\n}"
Hello World
Indeed.
Even my scripts using Win32::OLE work.
Conclusion: The OP's problem seems to be either one of two things:
1) Possible interference with the installation process. Not likely unless
he really went out of his way.
2) Trying to run perl from the same cmd shell used to initiate
installation. In this case, the solution is to start up a new shell.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
------------------------------
Date: Sat, 17 May 2008 12:31:00 GMT
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: Strawberry
Message-Id: <9vjt249ucp2h6sp7p1lrsseen5vv8u9fvc@4ax.com>
sanozuke <rahim.g.fakir@gmail.com> wrote:
>I have a Windows Xp and use Strawberry the think is the hello word
>doesn't work, and then the others programs as well.
>I do "perl filename.pl" in the command line and it gives a error
>unknow shell command.
Then perl.exe is not in your search path.
>Don't know what to do.
Add perl.exe (actually the directory that contains perl.exe) to your
search path or use a fully qualified path to access perl.exe
jue
------------------------------
Date: Sat, 17 May 2008 08:20:53 -0700 (PDT)
From: sisyphus <sisyphus359@gmail.com>
Subject: Re: Strawberry
Message-Id: <704c1c4d-bcb4-4f88-9135-5d2e4799648a@t12g2000prg.googlegroups.com>
On May 17, 10:20=A0pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:
=2E
=2E
> I was a little
> disappointed that it would not let me install in a different location (I
> put certain stuff in c:\opt to avoid paths with spaces)
Yes - that's one of the things I would like to see fixed in
Strawberry. However, if you wanted, it's not such a big deal to
relocate it.
Just copy the whole lot over to c:\wherever and then replace (in
Config.pm and Config_heavy.pl) every occurrence of c:\strawberry with
c:\wherever.
Then amend the path settings appropriately and you should be done.
Cheers,
Rob
------------------------------
Date: Sat, 17 May 2008 11:34:32 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: write 10 files
Message-Id: <Xns9AA14D0F13E91asu1cornelledu@127.0.0.1>
Ben Morrow <ben@morrow.me.uk> wrote in
news:8q80g5-hf4.ln1@osiris.mauzo.dyndns.org:
>
> Quoth "A. Sinan Unur" <1usa@llenroc.ude.invalid>:
>> "Ela" <ela@yantai.org> wrote in
>> news:g0jl3m$cj$1@ijustice.itsc.cuhk.edu.hk:
>>
>> > open (OFP$k, ">$outfile");
>>
...
>> This looks like a very poor attempt at using symbolic file handles
>> (if such a thing even exsits, I don't know).
>
> Yes, it does. A filehandle is just an unquoted string, so
>
> open "OFP$k", ">$outfile";
>
> 'works', FSVO.
>
> (I'm leaving this bit in just in case anyone gets the wrong idea from
> this post... :) )
>
>> When you find yourself wanting to index something using an integer,
>> you should use an array.
Thank you. I should have checked that myself. I am hoping that the OP
dropped the use of "OFP$k" in favor of $OFP[$k].
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
------------------------------
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 1551
***************************************