Question about activestate perl

2008-04-22 Thread Anne L. Highsmith
(Sorry if this is a duplicate. But I didn't see my first message distributed, so I'm re-sending from another address) This is REALLY embarrassing. After a loong hiatus, I need to go back to using activestate perl on my pc to do some work. I don't know whether it's me or my PC or the

Re: Question about activestate perl

2008-04-22 Thread Saiful Amin
On Tue, Apr 22, 2008 at 8:25 PM, Anne L. Highsmith [EMAIL PROTECTED] wrote: --- #!/usr/local/ActivePerl-5.8/bin/perl -w my $test = shift; print $test\n; I don't

Question about activestate perl

2008-04-22 Thread Anne L. Highsmith
This is REALLY embarrassing. After a loong hiatus, I need to go back to using activestate perl on my pc to do some work. I don't know whether it's me or my PC or the phase of the moon, but I can't get my program to recognize command line arguments. I backed off to the simplest

Re: Question about activestate perl

2008-04-22 Thread Mark Jordan
Hi Anne, Your script works (on my WinXP instance of ActivePerl anyway) when you replace the unix-style shebang line with the windoze equivalent, e.g., #!c:\perl\bin\perl.exe -w my $test = shift; print $test\n; Or, you can remove the shebang totally and run perl anne-test.pl Mark Anne L.

Re: passing records from OAI-Harvester to MARC-Record

2008-04-22 Thread josh santelli
Mike, I think Ed Summers' message (from Dec. 17th) on the code4lib mailing list might be helpful or relevant: http://serials.infomotions.com/code4lib/archive/2007/200712/ I'm not familiar with these perl modules. -- If I want to try something out I tend to use a pared down version of

RE: passing records from OAI-Harvester to MARC-Record

2008-04-22 Thread KREYCHE, MICHAEL
-Original Message- From: josh santelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 12:19 PM To: Perl4lib Cc: KREYCHE, MICHAEL Subject: Re: passing records from OAI-Harvester to MARC-Record Mike, I think Ed Summers' message (from Dec. 17th) on the code4lib

Re: Question about activestate perl

2008-04-22 Thread Arno H.P. Reuser
I think shift applies to an array, not to an argument. Try #!/usr/local/ActivePerl-5.8/bin/perl -w my $test = $ARGV[0] ; print $test\n; to read the first argument (hello) from the array ARGV Sincerely, Arno H.P. Reuser CEO, Reuser's Information Services KvK 2731 2325

Re: Question about activestate perl--closed

2008-04-22 Thread Anne L. Highsmith
Mark Jordan and Leif Andersson have pointed me in the right direction. It appears to be a problem with the file folder associations. c:\perl\bin\perl.exe test.pl Hello works, but test.pl Hello doesn't Yet it is weird.