[18292] in Perl-Users-Digest
Perl-Users Digest, Issue: 460 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Mar 10 09:05:41 2001
Date: Sat, 10 Mar 2001 06:05:13 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <984233113-v10-i460@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sat, 10 Mar 2001 Volume: 10 Number: 460
Today's topics:
Re: binary to decimal conversion: FAQ answer is not goo <mischief@velma.motion.net>
Built-in subroutines becoming undefined <jbranton.remove_last_dot_and_everything_after@clara.net>
Re: Can a regex do this? <bart.lateur@skynet.be>
Re: Can a regex do this? <mischief@velma.motion.net>
Re: Can a regex do this? (Tad McClellan)
Re: CGI won't work in Netscape browser <mischief@velma.motion.net>
Re: create a text file in DOS format. (Abigail)
Re: create a text file in DOS format. (Tad McClellan)
Re: Help to Install Perl <mischief@velma.motion.net>
Re: Help! apache->cgi->perl->dbi->mysql error <oracle@zonai.com>
Re: How do I get the name of a variable as a string? (Tad McClellan)
Re: How do I get the name of a variable as a string? <mischief@velma.motion.net>
Re: How to get perl not to convert decimal character <mischief@velma.motion.net>
Re: Macbeth and Perl threads <vdhamer@msn.com>
Re: Problem with getline in Text::CVS_XS <bart.lateur@skynet.be>
Re: scalar(localtime) in reverse? <bart.lateur@skynet.be>
Re: scalar(localtime) in reverse? <bart.lateur@skynet.be>
Re: Tk based alarm clock lvirden@cas.org
Re: Trying to capture current directory in variable <mischief@velma.motion.net>
Re: Trying to capture current directory in variable (Tad McClellan)
Re: using Perl for B2B? <bart.lateur@skynet.be>
Re: using Perl for B2B? <mischief@velma.motion.net>
Re: using Perl for B2B? <murat.uenalan@gmx.de>
Re: Weekend woes?! <jbou@bunker79.fsnet.co.uk>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 10 Mar 2001 13:07:06 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: binary to decimal conversion: FAQ answer is not good
Message-Id: <tak9nq52c9l2dc@corp.supernews.com>
Martien Verbruggen <mgjv@tradingpost.com.au> wrote:
> On 10 Mar 2001 01:58:50 GMT,
> Abigail <abigail@foad.org> wrote:
>> Martien Verbruggen (mgjv@tradingpost.com.au) wrote on MMDCCXLVIII
>> September MCMXCIII in <URL:news:slrn9aj18t.uoe.mgjv@martien.heliotrope.home>:
>> !! On Fri, 09 Mar 2001 23:31:46 GMT,
>> !! John W. Krahn <krahnj@acm.org> wrote:
>> !! > Martien Verbruggen wrote:
>> !! >>
>> !! >> The ord and 'c' template indicate that you are working with characters.
>> !! >> Normally, characters are 8 bytes long. You need to pick a length and
>> !! > ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> !! > Is this a new ISO standard that I missed? :-)
>> !!
>> !! Ack..
>> !!
>> !! s/bytes/bits/;
>>
>> Oh, you didn't mean 8 one-bit bytes?
> Nope. Where I come from the 1-bit bytes are sold out.
Wow, who's still paying 12.5 cents per byte? [1]
<attempt to be on topic>
Newbies, despite the jokes above, please notice that the
jokes relate to the needs of a technical group such as this.
Clear communication is vital to this group. Please notice
that even when joking about a mistype, the regulars have
replied with contextual quoting and suitably trimmed
previous posts.
</attempt to be on topic> ;-)
[1] Note to the international audience:
a "bit" is an archaic form of US money equal to an
eighth of a dollar
Chris
--
Christopher E. Stith
People understand instinctively that the best way for computer programs to
communicate with each other is for each of the them to be strict in what they
emit, and liberal in what they accept. The odd thing is that people themselves
are not willing to be strict in how they speak, and liberal in how they listen.
-- Larry Wall, 2nd State of the Onion Address, August 1998
------------------------------
Date: Sat, 10 Mar 2001 10:21:56 +0000
From: Joe Branton <jbranton.remove_last_dot_and_everything_after@clara.net>
Subject: Built-in subroutines becoming undefined
Message-Id: <Genq6.6093$g63.929350@nnrp3.clara.net>
I've just upgraded my Linux box from perl 5.00503 to 5.6.0. A script I
wrote that worked fine with the previous version is now broken. It uses
IO::Select, and when this attempts to call 'fileno' it jumps into
AutoLoader::AUTOLOAD (which was used by Tk.pm). It seems that somehow a
built-in perl subroutine has become undefined. Interestingly my script can
call fileno without problem.
Is this a known problem?
Anyone know of a work around or lines of attack for debugging?
Thanks,
Joe.
------------------------------
Date: Sat, 10 Mar 2001 09:05:26 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Can a regex do this?
Message-Id: <kkrjats24j7okra0r8d415mqor32qne5r9@4ax.com>
blahblah wrote:
>You incompetent fuck, I said REGEX. I never said PERL. Now go blow
>yourself, LOSER.
Then what the hell are you doing here.
--
Bart.
------------------------------
Date: Sat, 10 Mar 2001 12:49:54 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Can a regex do this?
Message-Id: <tak8nisfrvq16b@corp.supernews.com>
Bart Lateur <bart.lateur@skynet.be> wrote:
> blahblah wrote:
>>You incompetent fuck, I said REGEX. I never said PERL. Now go blow
>>yourself, LOSER.
> Then what the hell are you doing here.
Insulting people he's never met for not changing the position
if the stars, the luminancy of the moon, or the topic of the
newsgroup on his behalf. Doing very pooorly at it, I might add.
Good thing he thinks he's anonymous, or else he might behave.
It'd be horrible if he knew his site admin could be contacted
and would have a log of what machine posted which message at
which moment and which user was assigned that IP upon login.
His ISP/school might invoke their Acceptable Use Policy after
a few complaints about net abuse. Good thing he doesn't know
that, or we might not be blessed with his presence.
Chris
--
Christopher E. Stith
Get real! This is a discussion group, not a helpdesk. You post
something, we discuss its implications. If the discussion happens to
answer a question you've asked, that's incidental. -- nobull, clp.misc
------------------------------
Date: Sat, 10 Mar 2001 07:49:21 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Can a regex do this?
Message-Id: <slrn9ak8mh.jdk.tadmc@tadmc26.august.net>
blahblah <blah@blah.com> wrote:
>
>unfortunately regexes aren't used too much outside of
>perl.
Absurd. Regexes were used regularly for years before Perl
even existed. Just because you don't know about it does
not imply that it is not so.
>I need to bone
>up on it fast.
Then yelling "fuck you!" at folks with lots and lots of regex
experience was a not-so-clever-move.
Now you get to bone up on it with a much smaller pool of
folks willing to help you, as you have proven most adept
at earning killfile entries.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 10 Mar 2001 13:25:32 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: CGI won't work in Netscape browser
Message-Id: <takaqc1ci75e39@corp.supernews.com>
cdh <cdh@ala.net> wrote:
> Richard wrote:
>> I have quite a few scripts running online and today noticed they are not
>> executing when i try and run them from Netscape browser.
>>
>> When executed, all I get is the HTML code that is processed from the script.
>> I have no idea what is going on.
> Try putting
> print "Content-type: text/html\n\n";
> at the beginning of your script.
> Yes, Netscape is a piece of crap, so is IE, Mozilla,
> Opera and every other browser I've tried. You simply
> have a choice of your favorite "piece of crap". Your
> problem is not one that demonstrates why Netscape is
> crap. It's simply adhering to the specs which those
> other browsers are not doing.
Actually, in the case of Opera, it will guess the MIME
content type based on filename if the headers are
missing. This can be disabled, which makes it more a
feature than a bug although doing type guessing by
default would make it at least part bug, if it weren't
documented. I'm not very well familiar with the
particular reasons for the others rendering it with no
headers, but it could be the same reason.
This is a discussion best continued elsewhere.
Chris
--
Christopher E. Stith
For the pleasure of others, please adhere to the following
rules when visiting your park:
No swimming. No fishing. No flying kites. No frisbees.
No audio equipment. Stay off grass. No pets. No running.
------------------------------
Date: 10 Mar 2001 12:39:19 GMT
From: abigail@foad.org (Abigail)
Subject: Re: create a text file in DOS format.
Message-Id: <slrn9ak83n.nkp.abigail@tsathoggua.rlyeh.net>
Renato Santos (Bing@home.com) wrote on MMDCCXLVIII September MCMXCIII in
<URL:news:3AA9A73D.296821E6@home.com>:
?? How do I create a text file in UNIX perl that is in DOS format rather
?? than UNIX?
??
?? I tried the system("/bin/UNIX2DOS $file1 $file2"); but it keeps giving
?? me a server error. I'm using the perl script to create a text file from
?? a user input and the file has to be read by an NT machine.
Did you try running it from the command line? With -w? Did you see the
error you got?
(Here's a hint: Unix filesystems are case sensitive)
?? I also tried using the binmode function after I open the filehandle but
?? that did not work either.
That's because binmode on Unix is a noop.
?? The file looks fine in UNIX but when I open it in WindowsNT it is all
?? just one long line. The carriage return for each line is ignored.
Really? That sounds like a bug in WindowsNT then. Or in whatever program
you open the file with. But, if there are carriage returns, what exactly
do you want unix2dos to do? That adds carriage returns...
?? Any clue? I'm really a newbie with PERL so please excuse me if this
?? question is too trivial.
Just make sure you print lines ending with Dosish end-of-line markers:
"\x0D\x0A", or "\r\n" if you are on Unix.
Abigail
--
perl -wle '$, = " "; sub AUTOLOAD {($AUTOLOAD =~ /::(.*)/) [0];}
print+Just (), another (), Perl (), Hacker ();'
------------------------------
Date: Sat, 10 Mar 2001 07:54:49 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: create a text file in DOS format.
Message-Id: <slrn9ak90p.jdk.tadmc@tadmc26.august.net>
Renato Santos <Bing@home.com> wrote:
>How do I create a text file in UNIX perl that is in DOS format rather
>than UNIX?
Do not not need to do that.
Just write Unix files on Unix and DOS files on DOS.
Use "text mode" when transferring the files with FTP, and the
ftp program will convert the line endings for you!
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 10 Mar 2001 12:29:39 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Help to Install Perl
Message-Id: <tak7hj3qt2gvc7@corp.supernews.com>
Godzilla! <godzilla@stomp.stomp.tokyo> wrote:
> Suzanne wrote:
> (snippage)
>
>> ...then it was answered by net nazi who insists
>> it is his responsibility to make sure people toe
>> the mark in his newsgroups....
According to Godwin's Law, the thread is now officially over.
Someone (likely me, but I don't know, because I didn't see
the original post ;-) has been called a Nazi.
Score:
Suzanne, 0
Godwin's Law, 15,218,764,158
> You haven't engaged myself in dialog yet.
> I have an inherent knack for making these
> net nazis appear to be the sissified geeks
> they are truly.
Oooooh, stomp stomp. Even Godzilla is after her.
>> ...getting to know each other is such fun.
Unfortunately, most of us have chosen not to get
to know her, according to her own doing.
> You may change your mind on this notion. I find
> you to be as annoying as these sissified geeks
> populating this newsgroup.
That's a slam, BTW. Maybe even qualifies as a flame.
I thought I'd point that out for those as Usenet
challenged as the OP.
Chris
--
Christopher E. Stith
Product shown enlarged to make you think you're getting more.
------------------------------
Date: Sat, 10 Mar 2001 08:36:59 -0400
From: cayeyano <oracle@zonai.com>
Subject: Re: Help! apache->cgi->perl->dbi->mysql error
Message-Id: <3AAA1FEB.E4E38821@zonai.com>
> I think it is more a problem with Mysql than with Perl...
>
> --
> jrcourtois@webmails.com
> courtois@fiifo.u-psud.fr
Thanks for your help!!!
I found the cause of the problem rather quickly after the initial
posting...using the DBI, in the connection string the name of the server was
set to 'localhost'; I changed it to the ip address of the server where i have
MySQL up and voila!
Otre fois, mercy beaucoup.
Marcos Laborde
------------------------------
Date: Sat, 10 Mar 2001 13:15:03 GMT
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: How do I get the name of a variable as a string?
Message-Id: <slrn9ak6l0.ioi.tadmc@tadmc26.august.net>
[ Please limit your line lengths to the conventional 70-72 characters ]
Prem <donotreply@interbulletin.bogus> wrote:
>
>Question: Is it possible to get the variable name as a string, if so how?
Why do you think you need to do this?
Your question is a reliable indicator of a poor design.
Explain a bit about why you need to know the variable's name, and
we can help you redesign it so that you do not need to know the
variable's name.
>$myvar1str=GetVarNameAsString($myvar1);
># GetVarNameAsString should return "myvar1"
>Any suggestins where I should start looking
I get the feeling that you are headed toward the slippery slope
of "Symbolic references". You do not want to go there. You
should see if there isn't some other way to get what you need.
http://www.plover.com/~mjd/perl/varvarname.html
http://www.plover.com/~mjd/perl/varvarname2.html
http://www.plover.com/~mjd/perl/varvarname3.html
>for the solution if
The solution often involves the use of a hash.
>I need to write the function "GetVarNameAsString".
^^^^^^^
>'perl internals' or is there an easy solution?
Redesign your approach so that you do not need that.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 10 Mar 2001 13:54:44 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: How do I get the name of a variable as a string?
Message-Id: <takch4h0b65o0b@corp.supernews.com>
Prem <donotreply@interbulletin.bogus> wrote:
> Hello,
> Question: Is it possible to get the variable name
> as a string, if so how?
Why would be a better question, I think. Either you're
misunderstanding something here or I am. I won't rule
out that I am, especially before 8 AM on Saturday, but
I don't see why you need to do this.
> $myvar1str=GetVarNameAsString($myvar1);
> # GetVarNameAsString should return "myvar1"
$myvar1str = 'myvar1'; # does the same thing
> $myvar1str=GetVarNameAsString(@myvar2);
> # GetVarNameAsString should returns "myvar2"
$myvar2str = 'myvar2'; # ditto
> Any suggestins where I should start looking for
> the solution if I need to write the function
> "GetVarNameAsString". 'perl internals' or is
> there an easy solution?
My questions are:
Any easy solution to what?
Why do you need to return the name of a variable
you just typed in on the same line?
Are you sure you don't want to use a hash?
(This sound like a generalized PSI::ESP response,
but see Note 1 for why it's not.)
What are you trying to accomplish in the program
that needs this functionality?
> Thanks in advance.
You're welcome to whatever minimal help I might have
offered.
Note 1:
This is a specific PSI::ESP response. The OP may
want to use a hash because you can often use a
scalar variable to store the value of a hash key,
then access the value of that key by doing something
like this:
$foo = 'bar';
print $foo . '=' . $baz{$foo} . "\n";
Chris
--
Christopher E. Stith
The purpose of a language is not to help you learn the
language, but to help you learn other things by using the
language. --Larry Wall, The Culture of Perl, August 1997
------------------------------
Date: Sat, 10 Mar 2001 12:37:33 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: How to get perl not to convert decimal character
Message-Id: <tak80dhjs4is90@corp.supernews.com>
Tim Hammerquist <tim@vegeta.ath.cx> wrote:
> Brian <dersgniw@fuse.net> wrote:
>> "Chris Stith" <mischief@velma.motion.net> wrote...
>> > The CGI or CGI::Lite modules will give you strings that are decoded
>> > properly when you grab the forma data using them, and will encode
>> > them properly when you get ready to send them back to the browser.
>>
>> CGI doesn't help. The problem is I'm sending across a variable of variables
>> concatenated with |. And once these are passed, obviously, splitting
>> doesn't work because there could have been a pipe in a variable that I put
>> into the concatenated variable.
>>
>> My solution was to use a non-used character. I used hex character AB to
>> join and split the variables.
> Regardless, CGI.pm provides two subroutines (that may or may not be
> documented at this time) called escape() and unescape() that are used to
> encode and unencode variables for passage to CGI scripts.
As the OP clarified for me in email, his main concern isn't the
quoting and unquoting of characters. That's a bit of a red herring.
His problem was that his data, which he was joing with pipes then
splitting on pipes, could sometimes contain the very character
in the data itself on which he was trying to split.
Using a character very unlikely to be in the data elements is
therefore a good fix.
Using a module for CGI is still generally a good suggestion,
even if I don't follow it for all my programs. (Actually,
I have my own little modules I use when I don't need the
functionality of CGI.pm, but I don't think that counts,
since they are my own.)
Chris
--
Christopher E. Stith
Even in the worst of times, there is always someone who's
never had it better. Even in the best of times, there is
always someone who's never had it worse.
------------------------------
Date: Sat, 10 Mar 2001 10:40:36 +0100
From: "Peter van den Hamer" <vdhamer@msn.com>
Subject: Re: Macbeth and Perl threads
Message-Id: <98csoi$553$1@news.IAEhv.nl>
"Micah Cowan" <micah@cowanbox.com> wrote in message
news:yu8g0gm8kwt.fsf@mcowan-linux.transmeta.com...
> > Question: is it possible for one Perl (5.005-type) thread to kill
> > another thread in that thread's sleep?
>
> You can't do anything in your sleep, unless you arrange to be woken up
> asynchronously, say by a SIGALRM or somesuch.
Have started looking into signals.
My current concerns are that it wouldn't be very simple in the first
place, compared to my own kludges. And that mixing signals and
('experimental') multi-threading is hubris ;-)
> What I would do is avoid using sleep at all, and just use the loop to
> find out when the escape key was pressed. Users like immediate
> feedback. You may however have good reasons for not doing this.
Yep. My script can run for hours or days on a desktop system,
so the sleep() reduces the CPU load. And its an easy way
to do some rough timing in my loop.
Thanks for your reply,
Peter van den Hamer
------------------------------
Date: Sat, 10 Mar 2001 11:52:38 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Problem with getline in Text::CVS_XS
Message-Id: <135katgeq52jip2okh7hjq4qk7rjhrurlu@4ax.com>
Joe Brenner wrote:
>And the trouble with this data? There are spaces after the
>commas. CSV_XS *literally* wants comma separated values,
>it can't handle commas plus whitespace.
>
>And a s/, /,/g can't be used to fix the problem, either,
>because there are definitely cases where ", " appears
>inside the values. If I need to figure out whether a comma-space
>is inside of a double quoted string before I fix it,
>I might as well just write my own CSV parsing code.
Same for me. I did write my own CSV parser in plain perl, because
Text::CSV_XS is too picky for what it accepts. At least, your own code
you can easily patch to accept just anything. Oh, and the parser module
wasn't even that big, maybe one printed page in all (68 lines, 2286
bytes), it too less than an hour to write. If anybody would like a copy,
just drop me an e-mail.
--
Bart.
------------------------------
Date: Sat, 10 Mar 2001 09:12:16 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: scalar(localtime) in reverse?
Message-Id: <kurjat0fqm9b3328200paajolncepq8eve@4ax.com>
Bart Lateur wrote:
> /^\w+ (\w+) (\d+) (\d+):(\d+):(\d+) (\d+)$/
My tests have shown that localtime() puts two spaces in front of the day
of month, so make that regex:
/^\w+ (\w+) +(\d+) (\d+):(\d+):(\d+) (\d+)$/
In fact, you can replace any " " with " +", but that's the only one that
matters.
--
Bart.
------------------------------
Date: Sat, 10 Mar 2001 12:27:43 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: scalar(localtime) in reverse?
Message-Id: <jd7katcu0scruoifinjmfbemjmk82ak3vi@4ax.com>
Oops! Let's get this absolutely right.
Bart Lateur wrote:
>Bart Lateur wrote:
>
>> /^\w+ (\w+) (\d+) (\d+):(\d+):(\d+) (\d+)$/
>
>My tests have shown that localtime() puts two spaces in front of the day
MAY put two spaces in front of the day of the month, but only if it
consists of one digit. The total string length is always the same.
>of month, so make that regex:
>
> /^\w+ (\w+) +(\d+) (\d+):(\d+):(\d+) (\d+)$/
>
That still applies.
--
Bart.
------------------------------
Date: 10 Mar 2001 11:18:58 GMT
From: lvirden@cas.org
Subject: Re: Tk based alarm clock
Message-Id: <98d2j2$72$5@srv38.cas.org>
According to * Tong * <sun_tong_001@yahoo.com>:
:I'm planing to write a Tk based alarm clock
What do you mean by 'alarm clock'? I can envision at least two meanings
for this.
1. I set a time, either once or on a repeating basis, and at that time,
some kind of indicator (email, flashing, bell, etc.) indicates the time
has been reached. This could, of course, be extended to multiple
alarms. The idea here is that it is an every day type event, relatively
'blind'.
2. Some sort of 'reminder' mechanism by which I set indicators across a
calendar that a particular appointment has been reached. This is more
oriented towards one time events, with support of the repeating event
as well.
In other words, the first is sort of a visual cron type mechanism, where the
second is more along the lines of a visual at type mechanism.
At one time the following program was available - check to see if something
similar to what you wanted is present...
What: Remind
Where: <URL: http://www.doe.carleton.ca/%7Edfs/>
<URL: ftp://ftp.doe.carleton.ca/pub/remind-3.0/remind-3.0.22.tgz>
Description: Remind is an alarm/calendar program which handles Roman
and Hebrew calendars, sunrise, sunset and moon phases,
is multilingual, does complicated date calculations (handling
holidays propers), alarms, includes a WWW calendar server, and produces
PostScript output. Uses Tk for an X front end.
Available for UNIX, MS-DOS, OS/2 and other platforms.
Updated: 06/2000
Contact: <URL: mailto:aa775@freenet.carleton.ca> (David F. Skoll)
--
--
"See, he's not just anyone ... he's my son." Mark Schultz
<URL: mailto:lvirden@cas.org> <URL: http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting
------------------------------
Date: Sat, 10 Mar 2001 13:16:35 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Trying to capture current directory in variable
Message-Id: <taka9jslgj0l89@corp.supernews.com>
Richard J. Rauenzahn <nospam@hairball.cup.hp.com> wrote:
> "Michael Rolfe" <mumble[anti-spam]@maths.uct.ac.za> writes:
>> I am a Perl newbie writing a program that does a tree-walk;
>> I want to store the original working directory in a variable
>> (without using files, as write access may not be assumed).
>> The motivation is to change back to that directory as part
>> of program completion.
> Just in case you meant, "to change back to the directory
> *after* program completion," you don't need to do anything.
> When the Perl program exits, it will return to the original
> directory (which batch files *don't* do.)
Good point. RJR++
> I guess DOS batch files are one reason many are surprised
> that they can't change the environment from within a Perl
> script.
One of many. The same holds true for most any shell or cheap
imitation thereof. If it executes as a script interpreted by
the shell, in the shell's process, then ends, it can give the
illusion to an unsuspecting user that it is a program with a
lasting aftereffect.
Cwd.pm is a good way to go on DOS or Unix, because it's
portable.
Chris
--
Christopher E. Stith
It's not the U in UBE that pisses people off. It's the B.
-- Martien Verbruggen in clp.misc
------------------------------
Date: Sat, 10 Mar 2001 07:58:26 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Trying to capture current directory in variable
Message-Id: <slrn9ak97i.jdk.tadmc@tadmc26.august.net>
nnickee@nnickee.com <Nnickee> wrote:
>On 09 Mar 2001 08:41:25 -0800, merlyn@stonehenge.com (Randal L.
>Schwartz) scribbled upon the bathroom wall in comp.lang.perl.misc:
>
>>Michael> I am a Perl newbie writing a program that does a tree-walk;
>
>>Please don't, unless you are basing it on File::Find, already included
>>in your distribution.
>
>Randal,
>
>Have you written a post (that the new google-deja archive will
>actually have) or an article that addresses the why behind that
>"please don't"?
Loops in the filesystem (sym links) can cause infinite loops
in your dir-walking code, for one.
>Reason I ask is because I learned a lot by doing
>things the hard way
"Learning" and "getting work done" are different situations
requiring different approaches.
Most folks assume posters here are in the "getting work done"
mode unless told otherwise.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 10 Mar 2001 09:20:32 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: using Perl for B2B?
Message-Id: <09sjat0eo1kdq9uvb1hjis85ptvbr0uskf@4ax.com>
Miguel Cruz wrote:
>What language is your one year's experience with? That's likely to be a good
>starting point, unless maybe it was Logo or PostScript.
Hey! I like logo! It has a lot of interesting possibilities, not unlike
Python -- which is more recent. But it's not a language one can use for
SQL interfacing to a dB, if this is indeed what this thread is about. (I
don't know what "B2B" means. "Business to business"? Huh?)
--
Bart.
------------------------------
Date: Sat, 10 Mar 2001 13:31:31 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: using Perl for B2B?
Message-Id: <takb5jd161vbb0@corp.supernews.com>
Bart Lateur <bart.lateur@skynet.be> wrote:
> Miguel Cruz wrote:
>>What language is your one year's experience with? That's likely to be a good
>>starting point, unless maybe it was Logo or PostScript.
> Hey! I like logo! It has a lot of interesting possibilities,
> not unlike Python -- which is more recent. But it's not a
> language one can use for SQL interfacing to a dB, if this
> is indeed what this thread is about. (I don't know what
> "B2B" means. "Business to business"? Huh?)
Yep, that's the appropriate buzzword here. What makes a B2B
site much different from a public site is the nature of the
information and the level of security involved. Often the
amount of traffic and usage patterns are different, too. The
langauge used is of less concern than the finished product.
Chris
--
Christopher E. Stith
You must not lose faith in humanity. Humanity is an ocean;
if a few drops of the ocean are dirty, the ocean does not
become dirty. -- Mohandas K. Gandhi
------------------------------
Date: Sat, 10 Mar 2001 14:40:21 +0100
From: "Murat Uenalan" <murat.uenalan@gmx.de>
Subject: Re: using Perl for B2B?
Message-Id: <98dats$1eklb$1@ID-71895.news.dfncis.de>
Since i have already succesfully leaded a B2B project, which is similar to
your concept. I just recommend you following:
1) Don't hurry ! Take the time to think about the project-management.
Prepare your concept (UML is a good choice, but not a must)/everything well,
and consult a PROs about their valuable comments/suggestions on youe
concept/design.
2) Calculate your capacities/budget/time/manpower/technologies/platforms
(You can use a project-management software for it, but this is not a must)
and look how you can successfully achieve want you need within you
capacities/possibilities.
3) Again, prepare everthing well, because it is the main work. Writing the
source-code is the minor part !
5) Study the recent technologies (also in the B2B field) ! Have a look on
XML/RMDBS/BME CAT/...
6) Perl or not ?! Generally, many professionals use to write B2B
applications in Java, but not because it is the "best" language. My personal
experience says, very generally: Java is established for big teams - perl
you can do the same job (satisfactory) with just the half of the resources.
7) At last, these are important points: Code reusage (Object-oriented
design) , Settling-in period, Software care, Reliability, Performance.
Unfortunately i have not enough time to give you more hints, but hopefully
these lines help you more than confusing you.
Good Luck,
Murat
"Hermel Michaud" <hermel_michaud@hotmail.com> schrieb im Newsbeitrag
news:3AA91BD6.E8AC40DB@hotmail.com...
> Hello, I don't know Perl too much...Im currently learning Java Server
> Programming for building b2b applications.
> I want to specialize in building b2b for small and medium companies.
> Someone told me Java technologie is too complicated for my needs and
> recommended Perl.
> I would appreciate it if someone can tell me if this is true...
> Is Perl ideal for building b2b web sites?
> Thanks in advance to any response!
>
> Hermy
>
>
------------------------------
Date: Sat, 10 Mar 2001 08:17:14 -0000
From: "James Boulter" <jbou@bunker79.fsnet.co.uk>
Subject: Re: Weekend woes?!
Message-Id: <98co1u$mfk$1@newsg4.svr.pol.co.uk>
Thank you to every one for envolving themselves in this subject.
"James Boulter" <jbou@bunker79.fsnet.co.uk> wrote in message
news:98bg53$c41$1@newsg1.svr.pol.co.uk...
> Dear all,
>
> I wandered if it was actually possible to tell if a date in the past was a
> weekend day using something like perl's localtime function.
>
> Thank you
> James
>
> PLEASE FEEL UNDER NO OBLIGATION TO REPLY TO THIS E-MAIL EVEN IF YOU HAVE
AN
> ANSWER.
>
>
>
------------------------------
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 V10 Issue 460
**************************************