[26612] in Perl-Users-Digest
Perl-Users Digest, Issue: 8724 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 2 18:05:33 2005
Date: Fri, 2 Dec 2005 15:05:10 -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 Fri, 2 Dec 2005 Volume: 10 Number: 8724
Today's topics:
Re: Exec/System call with spaces in exec path problem . <Random@Task.be>
Strange string formatting error <salvadorNO@SPAMsportsjournals.net>
URL Parsing <francis@nospam.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 02 Dec 2005 15:49:28 -0500
From: Random Task <Random@Task.be>
Subject: Re: Exec/System call with spaces in exec path problem ...
Message-Id: <qr2kf.5791$Et5.381386@news20.bellglobal.com>
Random Task wrote:
> Hi i am writing perl on windows ... i am having a hard time executing a
> path with spaces ... can someone help ?
>
> my $command = "C:\\Documents and Settings\\jgdon\\My Documents\\run.exe";
>
> system ("$command 1>C:\\JIMTEST.TXT 2>C:\\JIMTEST.TXT");
>
> Thanks,
> Jim
> www.gomba.ca
qq{} fixed my problems ... cheers and thanks ...
------------------------------
Date: Fri, 02 Dec 2005 22:25:21 GMT
From: sjp <salvadorNO@SPAMsportsjournals.net>
Subject: Strange string formatting error
Message-Id: <lR3kf.286$5V1.97@trnddc02>
I've written some helper perl scripts to pull data from a mysql database
and output the data to a textfile for inclusion on a web front page that
I am using.
When I output the data directly from a script, I get strange garbled
characters rather than expected punctuation.
http://test.bluesites.net/topstory.html
When the page is filtered through drupal's rendering engine, the problem
gets solved:
http://test.bluesites.net
I suspect that this has something to do with the strings being encoded in
some format that my perl interpreter isn't set up to recognize, but the
pho interpreter used by drupal appears to. I haven't really been able to
describe the problem in a way that has given me useful leads to fixing
the problem in google or google groups, can someone point me in the right
direction?
TIA
------------------------------
Date: Fri, 02 Dec 2005 22:49:51 GMT
From: "Francis Sylvester" <francis@nospam.com>
Subject: URL Parsing
Message-Id: <jc4kf.125678$Es4.14897@fe2.news.blueyonder.co.uk>
Hi,
I'm trying to parse a URL string with the help of the CGI module. I'm sure
this is really simple but I just can't seem to retrieve the first variable
after the question mark in the URL - my code returns nothing for this
variable - variables after this are printed as expected. I've tried looking
at the perldoc but I still can't figure out why this isn't working... Any
help appreciated!
Thanks,
Francis.
# Example Code
use warnings;
use strict;
use CGI;
my $URL =
"http://.someurl.com/somepath?test1=testresult1&test2=testresult2&test3=testresult3";
my $test = new CGI($URL);
print $test -> param('test1');
print $test -> param('test2');
print $test -> param('test3');
------------------------------
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 8724
***************************************