[16678] in Perl-Users-Digest
Perl-Users Digest, Issue: 4090 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 22 03:05:27 2000
Date: Tue, 22 Aug 2000 00:05:14 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <966927913-v9-i4090@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Tue, 22 Aug 2000 Volume: 9 Number: 4090
Today's topics:
Cannot run cgi... puzzlerrr@my-deja.com
Re: Check for Installed Modules (BUCK NAKED1)
fastcgi and embperl <fritz.heinrichmeyer@fernuni-hagen.de>
Re: FTP module trouble (BUCK NAKED1)
Hashref infix misunderstood? (Soren Andersen)
how can I use perl to get a website? <feiyun-arthur.wang@nokia.com>
Re: Parse::Recdescent questions (<commit> and other pro (Damian Conway)
Re: Parse::Recdescent questions (<commit> and other pro <ocschwar@mit.edu>
Re: Parse::Recdescent questions (<commit> and other pro <ocschwar@mit.edu>
Re: Perl + Administration of NT4 (David Wall)
Re: Perl jobs? <biow@verity.com>
Re: Programming Ethics (Soren Andersen)
Re: Programming Ethics (Soren Andersen)
Re: Programming Ethics (Eric Bohlman)
R3 and creating a Service Notification <Steffen.Geschke@erlf.siemens.de>
Re: regexing html-like tags <lr@hpl.hp.com>
Re: regexing html-like tags <nobody@newsfeeds.com>
Re: regexing html-like tags <nobody@newsfeeds.com>
Re: regexing html-like tags <godzilla@stomp.stomp.tokyo>
Re: system() output screwing up redirection. <philipg@atl.mediaone.net>
Re: Variable vanishing? (David Wall)
Re: Wildcards in DOS 'dir' command (Soren Andersen)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 22 Aug 2000 06:18:31 GMT
From: puzzlerrr@my-deja.com
Subject: Cannot run cgi...
Message-Id: <8nt5vb$fqh$1@nnrp1.deja.com>
Hi...
stupid question...
does anyone know what this msg "CGIwrap Error: User not in
allow file!" means ?? it has something to do with the system
instead of the program, i suppose ??
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Tue, 22 Aug 2000 00:43:00 -0500 (CDT)
From: dennis100@webtv.net (BUCK NAKED1)
Subject: Re: Check for Installed Modules
Message-Id: <12180-39A212E4-47@storefull-245.iap.bryant.webtv.net>
Thanks a bunch, Marcel! Just what I needed, and worked like a charm.
Thank God, my webserver had the modules to run this small script!
Now, that "fish" fed at least 2 hungry castaways in the "sea of perl."
:-)
Regards,
Dennis
------------------------------
Date: 22 Aug 2000 08:11:09 +0200
From: Heinrichmeyer <fritz.heinrichmeyer@fernuni-hagen.de>
Subject: fastcgi and embperl
Message-Id: <uflmxp25c2.fsf@jfh00.fernuni-hagen.de>
Has anyone tried to use fastcgi with embperl?
Any experience?
--
Fritz Heinrichmeyer mailto:fritz.heinrichmeyer@fernuni-hagen.de
FernUniversitaet Hagen, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355 http://www-es.fernuni-hagen.de/~jfh
------------------------------
Date: Tue, 22 Aug 2000 00:58:19 -0500 (CDT)
From: dennis100@webtv.net (BUCK NAKED1)
Subject: Re: FTP module trouble
Message-Id: <12179-39A2167B-105@storefull-245.iap.bryant.webtv.net>
Wish I had the answer, but I do think someone here can help, so here's a
push.
Regards,
Dennis
------------------------------
Date: 22 Aug 2000 05:17:34 GMT
From: soren@spmfoiler.removethat.wonderstorm.com (Soren Andersen)
Subject: Hashref infix misunderstood?
Message-Id: <8nt2de$sps$5@slb6.atl.mindspring.net>
Why is this printing only one or duplicate of one entries?
I am trying to find file pairs (same name, different extension) in a
directory. I'd like to collect the paired names in a hash. When I try
to print out the hash, I see that something is wrong. Here's my code,
followed by what I get:
---- code, watch for wrapping ----
#!perl -w
use File::Spec;
$dir = $ARGV[0];
$dir =~ s#\\#/#g;
print "Now we are opening ",
($dir = File::Spec->rel2abs ($dir)), "\n";
opendir (GRAF, "$dir") or die "Couldn't open $dir\n$!";
for (grep /\.gif$/i, (sort readdir GRAF)) {
$gif = $_;
# print ' '. $gif, "\n";
s#\.gif$#.png#i or warn "no .gif extension?!";
$PNGs->{$gif} = $_ if -e $_ ;
}
closedir (GRAF);
print "Listing of paired GIFs and PNGs: \n";
for (($d,$f) = each (%$PNGs)) {
print ' ', $d, ' ', $f, "\n";
}
----- /code ---------
----- output --------
Now we are opening E:\data\scripts
Listing of paired GIFs and PNGs:
JVOJAVA_bulletb2.gif JVOJAVA_bulletb2.png
JVOJAVA_bulletb2.gif JVOJAVA_bulletb2.png
---------------------
It's a whole script so readers can run it for themselves. but I'll point
out that if i uncomment the line
print ' '. $gif, "\n";
I'll see everything that i should see -- the list is loading up correctly.
TIA,
soren andersen
[mail + public ng replies OK, sorry for munging]
--
Using PNG-format images as Web BACKGROUNDs without
"breaking your Site" for silly older browsers:
http://www.wonderstorm.com/techstuff/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Date: Tue, 22 Aug 2000 04:33:45 GMT
From: "Wang FeiYun" <feiyun-arthur.wang@nokia.com>
Subject: how can I use perl to get a website?
Message-Id: <Jono5.7482$AM5.124109@news1.nokia.com>
I heard that need the module "LWP:"
What 's that , how to use?
--
============================================
Wang FeiYun
feiyun-arthur.wang@nokia.com
============================================
------------------------------
Date: 22 Aug 2000 04:47:34 GMT
From: damian@cs.monash.edu.au (Damian Conway)
Subject: Re: Parse::Recdescent questions (<commit> and other problems.)
Message-Id: <8nt0l6$esp$1@towncrier.cc.monash.edu.au>
Omri Schwarz <ocschwar@mit.edu> writes:
> Which makes me wonder if it is possible to make RecDescent parse
> correctly with rules like
> operator_expression_1 : (operator_expression_2 operator_1
> operator_expression_2)(?s)
> operator_expression_2
Do you mean:
operator_expression_1 : (operator_expression_2 operator_1
operator_expression_2)(?s)
| operator_expression_2
perhaps?
Either way, that's a strange rule in a C grammar.
Maybe you wanted:
operator_expression_1 :
leftop<operator_expression_2 operator_1 operator_expression_2>(?s)
> or whether that is doomed.
It would depend on the definitions of the operator_expression_2 and operator_1
rules.
> I can do
> jump_statement : RETURN | GOTO | BREAK
Yes. Assuming the three alternatives are the names of suitable subrules.
> or I can do
> jump_statement : 'return' <commit> expression ';'
| 'goto' <commit> .........
Yes.
> in order to trim the tree a little.
Exactly. The fewer levels of rules, the better.
> Can one add <commit> to the first version and
> achieve anything?
No.
> Is it possible to tell RecDescent to split its
> input text to smaller chunks in order to speed performance?
RecDescent does not do this. It is hard to see how it could, since
it would first need to parse the text to find suitable points to
break it.
> (Would it speed performance?)
If *you* can find other ways to break the text, it will definitely
improve performance for large inputs.
Damian
------------------------------
Date: Tue, 22 Aug 2000 05:43:58 +0000
From: Omri Schwarz <ocschwar@mit.edu>
Subject: Re: Parse::Recdescent questions (<commit> and other problems.)
Message-Id: <39A2131E.4E4AEA34@mit.edu>
Damian Conway wrote:
>
> Omri Schwarz <ocschwar@mit.edu> writes:
>
> > Which makes me wonder if it is possible to make RecDescent parse
> > correctly with rules like
>
> > operator_expression_1 : (operator_expression_2 operator_1
> > operator_expression_2)(?s)
> > operator_expression_2
>
> Do you mean:
>
> operator_expression_1 : (operator_expression_2 operator_1
> operator_expression_2)(?s)
> | operator_expression_2
Actually, I meant:
operator_expression_1 : (operator_expression_2 operator_1)(s?)
operator_expression_2
(This pattern goes through most of the grammar).
Redoing it as
operator_expression_1 : operator_expression_2
| (operator_expression_2 operator_1)(s?) operator_expression_2
Is one thing I tried to speed things up.
One example is :
additive_expression : (multiplicative_expression add_op )(s?)
multiplicative_expression
add_op : '+' | '-'
I also tried uniting this tree by making operator_1
stand for as many operators as possible (for my purposes
operator precedence does not matter). I may take this
further if it has a hope of solving the current problem.
> perhaps?
>
> Either way, that's a strange rule in a C grammar.
>
> Maybe you wanted:
>
> operator_expression_1 :
> leftop<operator_expression_2 operator_1 operator_expression_2>(?s)
>
> > or whether that is doomed.
>
> It would depend on the definitions of the operator_expression_2 and operator_1
> rules.
>
> > I can do
>
> > jump_statement : RETURN | GOTO | BREAK
>
> Yes. Assuming the three alternatives are the names of suitable subrules.
>
> > or I can do
>
> > jump_statement : 'return' <commit> expression ';'
> | 'goto' <commit> .........
>
> Yes.
>
> > in order to trim the tree a little.
>
> Exactly. The fewer levels of rules, the better.
Okay, will do.
> > Can one add <commit> to the first version and
> > achieve anything?
>
> No.
>
> > Is it possible to tell RecDescent to split its
> > input text to smaller chunks in order to speed performance?
>
> RecDescent does not do this. It is hard to see how it could, since
> it would first need to parse the text to find suitable points to
> break it.
Right now I'm just using smaller input files.
> > (Would it speed performance?)
>
> If *you* can find other ways to break the text, it will definitely
> improve performance for large inputs.
At least to some degree you could do
@chunks = split ';' , $input_text;
foreach (@chunks) {
$grammar->parse;
if (chunk wasn't fully consumed) {
unite with next chunk;
parse;
}
}
Or something along those lines.
But right now I've managed to break something more fundamental
because the script is not even reaching RETURN : ...
on my sample code (http://www.mit.edu/~ocschwar/sample.c),
so I need to see what I just broke.
------------------------------
Date: Tue, 22 Aug 2000 06:32:10 +0000
From: Omri Schwarz <ocschwar@mit.edu>
Subject: Re: Parse::Recdescent questions (<commit> and other problems.)
Message-Id: <39A21E6A.7EE667FF@mit.edu>
Omri Schwarz wrote:
>
> Greetings, all!
>
> So, http://www.mit.edu/~ocschwar/decss2.pl is looking mighty good,
> in that 1. I figured out how to make the C Grammar From Hell
> correct in relation to things like multiplicative_expression
> and 2. it isn't crashing completely.
>
> But there are problems. When parsing
>
> int ijkton(int i, int j, int k){
> return i+I*(j-1)+I*J*(k-1);
> }
Hmm.
Right now for some reason the rule for return statements,
/return/ <commit> {print 'return';}
(expression[context => 'return'])(?) ';'
breaks because of whitespace preceding the return statement.
Parse::RecDescent::skip is '\s*'
Is that not what it ought to be?
------------------------------
Date: 22 Aug 2000 01:10:07 -0400
From: darkon@one.net (David Wall)
Subject: Re: Perl + Administration of NT4
Message-Id: <8F9833CFdarkononenet@206.112.192.118>
alessandro.augusto@ic.unicamp.br (Alessandro Augusto) wrote in
<39A1C961.9237B20E@br.bosch.com>:
>Hello,
>
>I am looking for tutorials, papers, articles or sites about how can
>I use perl to help administrate my NT network.
>
>Things that I would like to do:
>* remotely set values to the registry
>* remotely start/stop services
>* modify acls
>* etc
>
>I have been looking for this help, but Its has been hard to find.
>Can someone help me pointing me to the right direction.
O'Reilly has a book called "Perl for System Administration" that could be
useful. (I haven't read it.) A quote from their web site:
"Perl for System Administration is aimed at all levels of administrators on
the Unix, Windows NT, or MacOS platforms. Assuming only a little
familiarity with Perl, it explores the pockets of administration where Perl
can be most useful, including filesystem management, user administration,
directory services, database administration, log files, and security and
network monitoring. Perl for System Administration is for anyone who needs
to use Perl for administrative tasks and needs to hit the ground running."
See http://www.oreilly.com/catalog/perlsysadm/.
[Disclaimer: I am in no way associated with O'Reilly and will get no
compensation, monetary or otherwise, for mentioning a book published by
them. (But if they want to give me some money, that's ok.)]
--
David Wall
darkon@one.net
"Just another Wall" :-) (but not related to Larry)
------------------------------
Date: Tue, 22 Aug 2000 00:06:53 -0400
From: Christopher Biow <biow@verity.com>
Subject: Re: Perl jobs?
Message-Id: <q2v3qs4kll1dv5jrpj695quifb4s2ts8mt@4ax.com>
"Jeff Yoak" <jeff@yoak.com> wrote:
>One of my responsibilities here is hiring compotent Perl programmers and I
>can tell you from experience that it is really difficult to find skilled
>people. We would literally hire 10 tomorrow if they walked in the door.
I'll echo that. Jobs in the US for experienced Perl programmers with some
general skills also, willing to do moderate (and only moderate) travel,
making six figures, are going unfilled. Wish I could find people...
There may be ten times as many C++ jobs, many of which are also going
unfilled. Who cares--I don't enjoy C++.
The bottom line is that right now, geeks can pretty much write their own
tickets in most major US metropolitan areas. Perl and Java are both quite
saleable; better yet, know both. And nobody but nobody can predict how it
will be five years from now, other than that geeks will probably be making
good money in a variety of specialties. So this side of something that's
not going to sell at all (say, Turing tapecode), study what you find most
interesting. But don't get so thoroughly taken by any one language that you
lose the ability to move to another, if the whims of the business
marketplace drift in the next few years.
------------------------------
Date: 22 Aug 2000 04:38:11 GMT
From: soren@spmfoiler.removethat.wonderstorm.com (Soren Andersen)
Subject: Re: Programming Ethics
Message-Id: <8nt03j$sps$2@slb6.atl.mindspring.net>
tim@degree.ath.cx (Tim Hammerquist) wrote in
<slrn8p1oq3.2sq.tim@degree.ath.cx>:
>Soren Andersen wrote:
>> Ordinary people, "even
>> programmers," need to *not* leave this sort of question up to the
>> "experts." It is too important to leave up egomaniac talking heads
>> and pundits.
>
>Doesn't that disqualify us en masse?
Not sure if I take your meaning correctly.
Did you get tripped up by my silly double-negative, despite the emphasis
provided by the asterix? I intended readers to understand that I meant: *each
one of us should (ideally) set our minds on becoming great life-philosophers*.
Not the sort of philosopher who merely spouts academic theoretical drivel but
practical, down-to-earth, grounded individuals who can speak out about right
and wrong (and the broad gray areas life holds, where the real challenge lies,
and where the naivitè of youth really shows its face). The modern American
attitude seems to be to leave it up to figures on electronic media to speak our
minds (or actually to make up our minds) for us. Which is a cop-out, an
abdication of personal responsibility.
Check out the great American philosopher/educator Dewey as an example of a man
who made plain clear thinking into a highly refined art form.
Also, BTW, this is a medium in which verbosity makes a message inaccessible to
the vast majority or potential readers; therefore the price exacted for the
severe brevity required by USENET is that generalizations get implied that were
not intended by the authors of msgs. The readers of this ng and programmers in
general are varied individuals of many degrees of capacity and maturity. Many
will be far more mature human beings than I myself. However if I am being told
I was obligated to make that elaborate disclaimer in my previous posting, I
contend that is simply argumentative-ness for its own sake.
soren andersen
--
Using PNG-format images as Web BACKGROUNDs without
"breaking your Site" for silly older browsers:
http://www.wonderstorm.com/techstuff/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Date: 22 Aug 2000 04:40:29 GMT
From: soren@spmfoiler.removethat.wonderstorm.com (Soren Andersen)
Subject: Re: Programming Ethics
Message-Id: <8nt07t$sps$3@slb6.atl.mindspring.net>
ken.j.parmalee.spamthis@bridge.bellsouth.com (Ken Parmalee) wrote in
<39970E1F.6F714829@bridge.bellsouth.com>:
{snip}
>And you're either following your own path or the path given to you by
>another. Which one will give you the ability to look in the mirror and
>say to yourself "What I am I built with my own hands"?
{snip}
Good answer (most snipped for Netiquette's sake). Much mirrors my own
strong feelings.
soren andersen
--
Using PNG-format images as Web BACKGROUNDs without
"breaking your Site" for silly older browsers:
http://www.wonderstorm.com/techstuff/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Date: 22 Aug 2000 05:02:27 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Programming Ethics
Message-Id: <8nt1h3$8h4$2@slb0.atl.mindspring.net>
Keith Calvert Ivey (kcivey@cpcug.org) wrote:
: Jason Maggard <jmaggard@va.mediaone.net> wrote:
: >The ethics of this really are not your concern, as programmers,
: >we supply information and methods of dealing with it.
:
: "Once ze rockets go up, who cares vhere zey come down? Zat's
: not my department, says Wernher von Braun."
What bugs me about the "I'd go ahead and do it" responses is that they
don't even pass the test of enlightened self-interest. They represent a
willingness to build someone a contraption to help him piss in your own
sandbox.
------------------------------
Date: Tue, 22 Aug 2000 08:54:09 +0200
From: Steffen Geschke <Steffen.Geschke@erlf.siemens.de>
Subject: R3 and creating a Service Notification
Message-Id: <39A22391.76A3E7AC@erlf.siemens.de>
Hi,
I am using Johan Schoen's R3 module to connect to SAP R/3
via RFC SDK.
Does somebody have an example how to create a purchase order
or any other BAPI where the functional modul requires an
input structure and a table like the following.
Using the example below I get a SYSTEM_FAILURE. What am I doing
wrong?!
Regards,
Steffen
BTW: I can also provide the trace file if it helps to find the problem.
--
$conn=new R3::conn (%logon);
$func=new R3::func ($conn, "BAPI_SERVICENOTIFICAT_CREATE");
$item = new R3::itab ($conn, "BAPIQMFE");
$itemPos{DESCRIPT} = 'Pos 1';
$item->add_record(%itemPos);
$header = new R3::itab ($conn, "BAPI2080");
$headerPos{DESCRIPT} = 'Pos 1';
$header->add_record(%headerPos);
call $func ([NOTIF_HEADER=>$header], [NOTIF_ITEM=>$item], NUMBER=>$n);
--
------------------------------
Date: Mon, 21 Aug 2000 21:48:33 -0700
From: Larry Rosler <lr@hpl.hp.com>
Subject: Re: regexing html-like tags
Message-Id: <MPG.140ba5f76cc19a6798acb4@nntp.hpl.hp.com>
In article <39A1F849.770E9E4A@stomp.stomp.tokyo>,
godzilla@stomp.stomp.tokyo says...
> Someone wrote:
Evidently you don't understand proper attribution. "It was I, said the
sparrow..."
<SNIP correct code, about which the Original Poster said:
That is perfect! It gets the job done. ... It's a great starting off
point, since where I was before was no where close to this. ... Thank
you very much for your help,>
> ROSLER TEST SCRIPT:
<SNIP correct code misapplied to different data.
> $_ = '<html>Gobbly Gook<name=test1 value=test1> Gibberish<P
> ><NAME="TEST2" VALUE="TEST2">Techno-Geekster Gobbly Gibberish<name=
> "test3" value="test3">Kira Is Brilliant<IMG SRC="Kira_Naked.gif">
> Mule Manure Here<font face="test4" color="test4" size="test4"><BR>
> Dr. Frankie Einstein Wrote This<FORM ACTION="Yo Ho!" METHOD="CRASH">
> <FORM ACTION="//la.znet.com/~callgirl/"><INPUT TYPE="submit" VALUE
> ="CallGirl Nude Pictures"></FORM>YIKES!</html>';
>
> PRINTED RESULTS:
> ________________
>
> ACTION => //la.znet.com/~callgirl/
> METHOD => CRASH
> NAME => TEST2
> SRC => Kira_Naked.gif
> VALUE => TEST2
> color => test4
> face => test4
> name => test1
> size => test4
> value => test3
Surely you know that a hash can hold only one datum per key. If there
will be several data per key, a different data structure is appropriate.
The needs of the application determine the correct design.
<SNIP of usual ad hominem maunderings.>
> * demure smile *
>
> Godzilla!
Yawn.
--
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Mon, 21 Aug 2000 22:28:01 -0700
From: Anonymous <nobody@newsfeeds.com>
Subject: Re: regexing html-like tags
Message-Id: <39A20F61.D0C6DD1B@stomp.stomp.tokyo>
Larry Rosler spews hypocrisy:
> godzilla intelligently writes:
> > Someone wrote:
(snippage of childish blatherings)
> Evidently you don't understand proper attribution.
> "It was I, said the sparrow..."
I see. So it is ok for you to do this,
"[Attribution to our favorite troll omitted.]"
However, it is not ok for me to do the same but in
a more gentle way, sans immature personal insults?
Not only do you write bad code, you are a
clearly a hypocrite.
Whew.... mondo beyondo.
Anonymous Godzilla!
--------== Posted Anonymously via Newsfeeds.Com ==-------
Featuring the worlds only Anonymous Usenet Server
-----------== http://www.newsfeeds.com ==----------
------------------------------
Date: Mon, 21 Aug 2000 22:44:29 -0700
From: Anonymous <nobody@newsfeeds.com>
Subject: Re: regexing html-like tags
Message-Id: <39A2133D.9B4B5788@stomp.stomp.tokyo>
Blair Heuer wrote:
(snippage)
> That is perfect! It gets the job done.
> True, it could lead to erronous output....
Hmmm...
Anonymous Godzilla!
--------== Posted Anonymously via Newsfeeds.Com ==-------
Featuring the worlds only Anonymous Usenet Server
-----------== http://www.newsfeeds.com ==----------
------------------------------
Date: Mon, 21 Aug 2000 22:51:39 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: regexing html-like tags
Message-Id: <39A214EB.9A793F75@stomp.stomp.tokyo>
Larry Rosler wrote:
> In article <39A1F849.770E9E4A@stomp.stomp.tokyo>,
> godzilla@stomp.stomp.tokyo says...
> > Someone wrote:
(snippage)
> Surely you know that a hash can hold only one datum per key.
> If there will be several data per key, a different data
> structure is appropriate. The needs of the application
> determine the correct design.
Precisely. This is why your code fails. I am curious
why you would post bad code, knowing it is bad code.
Godzilla!
------------------------------
Date: Tue, 22 Aug 2000 04:18:19 GMT
From: "Philip Garrett" <philipg@atl.mediaone.net>
Subject: Re: system() output screwing up redirection.
Message-Id: <fano5.56196$rd1.10401651@typhoon-news1.southeast.rr.com>
<swan_daniel@my-deja.com> wrote in message
news:8nsqss$41g$1@nnrp1.deja.com...
> This did help, Philip, but now the script executes fine, but the system
> function is not executed... I can tell, because the web pages it is
> suppost to create do not exist.
<snip>
> system("/usr/local/bin/ipacsum --timeframe \"$forminput\" --gif
> $TRAFDIR --gif-index /home/httpd/html/traffic/index${time}.html
> --png-caption-in-index --png-asis --fixed-quantity M --png-height 480
> --png-width 640 > /dev/null 2>&1");
>
> Thoughts?
Does the user that your web server is running as (usually nobody) have write
permissions to the file you're writing? If you can write to the file, but
the web server can't, that would be the first place I would look.
hth
Philip
------------------------------
Date: 22 Aug 2000 00:54:58 -0400
From: darkon@one.net (David Wall)
Subject: Re: Variable vanishing?
Message-Id: <8F9861DCdarkononenet@206.112.192.118>
abe@ztreet.demon.nl (Abe Timmerman) wrote in
<fdi3qsorchuaiterrc9c7gvsl0k6cm4lur@4ax.com>:
>On Mon, 21 Aug 2000 20:32:56 GMT, Steven Merritt
><smerr612@mailandnews.com> wrote:
>
>> my $From_Date = 20000000000000;
>> my $To_Date = 20000525135144;
>
>I would declare those as strings:
>
> my $From_Date = '20000000000000';
> my $To_Date = '20000525135144';
Just out of curiousity, why would you do that? Why does it matter?
--
David Wall
darkon@one.net
------------------------------
Date: 22 Aug 2000 04:55:41 GMT
From: soren@spmfoiler.removethat.wonderstorm.com (Soren Andersen)
Subject: Re: Wildcards in DOS 'dir' command
Message-Id: <8nt14d$sps$4@slb6.atl.mindspring.net>
bwalton@rochester.rr.com (Bob Walton) wrote in
<39A00A3E.EADB4F9E@rochester.rr.com>:
>jblatz2@my-deja.com wrote:
>>
>> {snip} Windows NT 4.0 platform.
>> @dirlist=`dir /b ..\*.log`;
>> Am I doing something wrong or can I just not do this?
Yes, you are (doing something wrong). Wrong shell syntax (not a Perl question).
Do `>help dir' or dir /?'in a Windows prompt, and I think you will find that
you must do:
dir <path> /options
IOW: `dir' on WinNT works differently from nearly any other shell command or
application anyone has ever used. Whaddaya expect, its Microsoft!
>You need to read up on quoted strings.
{snip}
>You might also wish to consider the opendir function (perldoc -f
>opendir), which will permit writing a program that might be more
>portable between different platforms.
Good advice, but since he asked, he can learn about his OS' native shell too.
I don't know why doing it wrong sometimes works in the simple NT shell, but it
nearly always fails when programmatically applied in a script of any sort
(including a simple Windows batch file).
Quote:
DIR [drive:][path][filename] [/P] [/W] [/D] [/A[[:]attributes]]
[/O[[:]sortorder]] [/T[[:]timefield]] [/S] [/B] [/L] [/N] [/X] [/C]
HTH,
soren andersen
--
Using PNG-format images as Web BACKGROUNDs without
"breaking your Site" for silly older browsers:
http://www.wonderstorm.com/techstuff/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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 V9 Issue 4090
**************************************