[8314] in Perl-Users-Digest
Perl-Users Digest, Issue: 1931 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Feb 19 10:07:31 1998
Date: Thu, 19 Feb 98 07:00:32 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 19 Feb 1998 Volume: 8 Number: 1931
Today's topics:
Re: <$x> OK but <$_[0]> NOT?!! (Martien Verbruggen)
Can you read AND write to a child process? <kitfox@golden.net>
Re: Can you read AND write to a child process? (Gabor)
CGI with Perl HTTP1.0 501 error <eric@arkinfo.com>
Re: CGI with Perl HTTP1.0 501 error <ebohlman@netcom.com>
Re: Hardware remote control (Peter Samuelson)
Re: Help Need ASAP! <mikihasa@worldnet.att.net>
Re: Help: Why does sysread give false end of file? (Stan Majka)
I need HELP!!!!!!! <"Keric@pacific.net.sg"@pacific.net.sg>
Re: Internationalization <soul@explorer.com>
Re: internet:clearing user login data and forcing relog <soul@explorer.com>
Newbie question <jrcruto@bechtel.com>
Re: Newbie question <ebohlman@netcom.com>
Re: Newbie question: script directory <mikihasa@worldnet.att.net>
Re: Newbie question: script directory (Peter Samuelson)
Open3 (Ian Steel)
Re: Perl 5 DynaLoader errors <tokar@apmsun.mpei.ac.ru>
Read the FAQ ...need milliseconds (David J Meyer)
RTFM ??? (Patrick)
Re: Sort help please! (Craig Berry)
Re: split on ':', but not '\:' (Tony Bass)
Re: split on ':', but not '\:' (Douglas Wilson)
Taint / exec / stderr (Ian Steel)
Re: Taint / exec / stderr (Ian Steel)
time conversion under perl <brassel@hrnet.fr>
Re: time conversion under perl <xxTony.Curtis@vcpc.univie.ac.at>
Re: Undefined Subroutine in &Module::Package::SubPackag <ragoff@sandia.gov>
Unknown Error (Babar)
Re: Variable Problem. (Clay Irving)
Re: Why is Tom Christiansen so rude? <webmaster@fccj.org>
Re: Writing a "println" function that works just like " <moe@alum.mit.edu>
Re: WWW form (Martien Verbruggen)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 18 Feb 1998 01:37:31 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: <$x> OK but <$_[0]> NOT?!!
Message-Id: <6cde0r$ecb$1@comdyn.comdyn.com.au>
In article <6caqek$uf$1@mark.ucdavis.edu>,
kkong@ece.ucdavis.edu (Keith Kong) writes:
> I've got a file handle created some place that I want to pass to a
> subroutine. Something like the following:
Is there anything that the FAQ doesn't tell you about this:
perldoc perlfaq5
How can I make a filehandle local to a subroutine? How do I
pass filehandles between subroutines? How do I make an
array of filehandles?
Please, read.
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | Inside every anarchy lurks an old boy
Commercial Dynamics Pty. Ltd. | network - Mitchell Kapor
NSW, Australia |
------------------------------
Date: Thu, 19 Feb 1998 07:25:18 -0500
From: Mark McKay <kitfox@golden.net>
Subject: Can you read AND write to a child process?
Message-Id: <34EC24AE.27D884E1@golden.net>
Hi. I'm tyring to get perl to communicate with a small program I wrote
(in C++) through STDIN & STDOUT. I've been through my Camel book, but
can't seem to get the thing to work. Right now I have a copy of the
binary (called 'db_access') both in my ~/bin and ./ directories. The
general idea is you send one (fairly short) string to it's STDIN, and it
spits out a formatted database query at it's STDOUT. Here's my code so
far:
use IPC::Open2;
open2(PFROM_QRY, PTO_QRY, 'db_access');
print PTO_QRY "select * from tuna";
close(PTO_QRY);
$f = <PFROM_QRY>;
print $f;
The error messages I'm getting are coming from my binary and indicate
that it is not receiveing any input. Any suggestions? Please email me.
Mark
--
+---------------------------------------------------------+
| Mark McKay - Hacker, news group lurker and nacho eater |
| extraordinare. *********************** |
| Surf on over to my web page; * If I could think of * |
| there are some cool Java * something witty, it * |
| programs I wrote there. * would go here... * |
| http://www.kitfox.com *********************** |
+---------------------------------------------------------+
------------------------------
Date: 19 Feb 1998 14:28:00 GMT
From: gabor@vmunix.com (Gabor)
Subject: Re: Can you read AND write to a child process?
Message-Id: <slrn6eogkt.g9o.gabor@vnode.vmunix.com>
In comp.lang.perl.misc, Mark McKay <kitfox@golden.net> wrote :
# Hi. I'm tyring to get perl to communicate with a small program I wrote
# (in C++) through STDIN & STDOUT. I've been through my Camel book, but
# can't seem to get the thing to work. Right now I have a copy of the
# binary (called 'db_access') both in my ~/bin and ./ directories. The
# general idea is you send one (fairly short) string to it's STDIN, and it
# spits out a formatted database query at it's STDOUT. Here's my code so
# far:
Use sockets. If they are both on the same box then you can use Unix
domain sockets, very fast. Otherwise you can use inet domain sockets
and use an unused port number.
gabor.
--
So you are really projecting your own inadequacies on the
moderators.
-- Dave Blake in rec.bicycles.off-road
------------------------------
Date: Thu, 19 Feb 1998 15:21:45 +0800
From: Eric Lim <eric@arkinfo.com>
Subject: CGI with Perl HTTP1.0 501 error
Message-Id: <34EBDD89.504D@arkinfo.com>
Hi,
Anyone knows what is the problem when I run a Perl script located in
Windows NT with IIS 4.0 ?
I still cannot figure out the reason and hope someone can help out. I am
using Netscape 3.0 and Explorer 4.0 and when I try to sumbit a html
form I had the above error.
Perl was installed on the NT and same with IIS 4.0. Is there any
configuration I need to make before anything ?
Please advise.
------------------------------
Date: Thu, 19 Feb 1998 10:20:18 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: CGI with Perl HTTP1.0 501 error
Message-Id: <ebohlmanEoMFDv.4q8@netcom.com>
Eric Lim <eric@arkinfo.com> wrote:
: Anyone knows what is the problem when I run a Perl script located in
: Windows NT with IIS 4.0 ?
: I still cannot figure out the reason and hope someone can help out. I am
: using Netscape 3.0 and Explorer 4.0 and when I try to sumbit a html
: form I had the above error.
: Perl was installed on the NT and same with IIS 4.0. Is there any
: configuration I need to make before anything ?
: Please advise.
The most likely cause of your problem is that your mouse is getting hungry
and running out of energy. Crumble some cheese on your mousepad each
night. It may take a couple of days for your script to start working.
While you're waiting, you might have fun going over to DejaNews and
reading the articles in comp.infosystems.www.authoring.cgi.
------------------------------
Date: 19 Feb 1998 04:49:25 -0600
From: psamuels@sampo.REMOVETHIS.creighton.edu (Peter Samuelson)
Subject: Re: Hardware remote control
Message-Id: <6ch2nl$fcv$1@sampo.creighton.edu>
[Russell Shaw <russell@martin.com.au>]
> The user accesses a "web page menu" on the remote PC using a Netscape
> navigator browser.
Why Navigator, specifically? Why a PC, specifically?
> The HTML web page has CGIs (common gateway interface thingies) that
> activate programs written in PERL code. The PERL code does a
> measurement and displays a result as a graph or numerical output on
> the web page.
FYI, Perl is not normally spelled in all-caps.
I think you need to be asking this somewhere like
comp.infosystems.www.authoring.cgi, as it's not really about Perl. It
seems to be about the possibility of embedding CGI commands in an HTML
document. I also suggest also that you look into SSI ("server-side
includes") and perhaps Apache's enhanced version, XSSI. Or, if you
just have images that need to be dynamic, that you research the
possibility of using CGI URLs in SRC= attributes.
> I have looked through books in bookshops but the amount of time
> required and buying books to find this small piece of information in
> the overwhelming stuff available is a challenge to say the least.
>
> Assumptions:
> I know C, some C++, and assembler.
> I haven't done HTML, Perl, or Java.
If you think finding the answer to the above is time consuming, you
probably don't want to do the actual project. You'll have to learn at
least (1) Perl, (2) HTML, (3) CGI, and possibly (4) SSI. Note that
(1) is optional if you prefer to write your CGI in C++ (which I don't
particularly recommend, but you do get to skip learning Perl).
--
Peter Samuelson
<sampo.creighton.edu ! psamuels>
------------------------------
Date: Thu, 19 Feb 1998 05:55:50 -0500
From: "Michael R. Harper" <mikihasa@worldnet.att.net>
To: srod@fedex.com
Subject: Re: Help Need ASAP!
Message-Id: <6ch2nj$dbu@bgtnsc02.worldnet.att.net>
Dear Savonnya,
I know you can do the opposite in Perl 5 (from Day 20 of Teach yourself Perl
in 21 Days by David Till):
> Perl 5 enables you to call Perl subroutines from within C programs. To add this capability, you need
> to do two things: add references to Perl to your program source, and then link the Perl library when
> you compile your program.
>
> See the Perl documentation for more details on how to use Perl subroutines in C programs.
>
Sincerely,
Michael R. Harper
mikihasa@worldnet.att.net
Savonnya rodrigues wrote:
> Need to be able to do a function call in a Perl script to a C program. I
> know someone told its not possible, but I am just asking. The program
> that I am using is doing a function call in C to a C compiler. Is there
> a way I could use a function call for Perl?
------------------------------
Date: 19 Feb 1998 11:58:30 GMT
From: spamblock_majka@richmond.infi.net (Stan Majka)
Subject: Re: Help: Why does sysread give false end of file?
Message-Id: <6ch6p6$50m$1@nw003t.infi.net>
In article <MPG.f52baaa8474a64c9896e3@news.concentric.net>, jdf@pobox.com
says...
>
>Is it possible that some of the bytes in your file are equal to ^Z? If so,
>did you
>
>open(THEFILE, "<thefile") or die "$!";
>binmode THEFILE;
binmode did the trick. Thanks.
------------------------------
Date: Thu, 19 Feb 1998 20:42:40 +0800
From: Eric <"Keric@pacific.net.sg"@pacific.net.sg>
Subject: I need HELP!!!!!!!
Message-Id: <6ch956$3pt$1@newton.pacific.net.sg>
Hi, I am a student studying in Singapore. Can anyone help with the
project I am doing right now? I have to get 2 input from the HTML
document(windows 95/NT), add the 2 inputs using a simple perl
script(Windows 95/NT) and then return the result to the HTML document.
The interface can be kept simple.
I hope anyone out there who have a working program can send them(perl &
HTML) to me via e-mail(attachment if size too big).
I really need the codes!!!!
Thank you, GUYS
Eric Kuo
------------------------------
Date: 19 Feb 1998 11:55:59 GMT
From: <soul@explorer.com>
Subject: Re: Internationalization
Message-Id: <6ch6kg$q72@news3.euro.net>
schwern@starmedia.net wrote in message <6cgbe5$vm8$1@nnrp1.dejanews.com>...
>I need something to ease this translation process for all strings and
output
>in my programs. Something similar to GNU's gettext (which appears to be
>exclusively for C, alas) and preferably something that works with emacs.
yes i am an english speaker working in the netherlands and would like this
situation
also. what i suspect is an easy way to manage the process is to include a
require "./lang/template.en"
where "template" is english,german,dutch,spanish etc
and contains:
$error = "error message in whatever language"
$this = "this in whatever language"
$that = "that in whatever language"
and the perl script, rather than hardcoding text into the script, references
the text
content from the language template.
any simpler ideas out there?
------------------------------
Date: 19 Feb 1998 12:00:07 GMT
From: <soul@explorer.com>
Subject: Re: internet:clearing user login data and forcing relogin?
Message-Id: <6ch6s7$qcl@news3.euro.net>
yes i'm quite interested also how to do this in perl, shame that the best
that can be offered is the same old wannabe hacker junk.
what's the purpose of this group if it's not for people to communicate
solutions and ideas with each other?
>Gee Jonathan - thanks for the help.
>
>I didn't think I needed to say I am trying to do this in Perl, and was
>hoping for some hints on using relevant perl modules if appropriate -
>Since this is the perl list. Next time I will try to spell out what I
>assume to be the obvious in big letters just for you.
>
>'Scuse me for being human and missing a possibly more relevant ng
>amoung the thousands.
>
>I will take my question to the cgi list and hope to catch someone who
>got out of bed on the right side.
>>"Parse" is a big word these days. In fact, it was one of the topics
>>William Safire's last NY Times Magazine column. So I'd just like to
>>no matter how diligently I parse your post, I can't find a shred of
------------------------------
Date: Thu, 19 Feb 1998 04:48:13 GMT
From: "Jay Cruto" <jrcruto@bechtel.com>
Subject: Newbie question
Message-Id: <01bd3cf1$78433fe0$37520193@sinw0313.bechtel.com>
What is the command/function to display the current date using the format
DD-MMMM-YY? I'm using Perl 5. Thanks for your help.
------------------------------
Date: Thu, 19 Feb 1998 14:19:29 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: Newbie question
Message-Id: <ebohlmanEoMqGH.F5n@netcom.com>
Jay Cruto <jrcruto@bechtel.com> wrote:
: What is the command/function to display the current date using the format
: DD-MMMM-YY? I'm using Perl 5. Thanks for your help.
Go over to CPAN and look at the various Date:: modules. One of them
should do the trick for you.
I do hope, though, that you have a typo in your format. Four-letter
months can read a bit funny ("01-Apri-98") and two-digit years are passe.
------------------------------
Date: Thu, 19 Feb 1998 05:50:11 -0500
From: "Michael R. Harper" <mikihasa@worldnet.att.net>
To: jobrien@world.std.com
Subject: Re: Newbie question: script directory
Message-Id: <6ch2d0$dbu@bgtnsc02.worldnet.att.net>
Dear John (O that sounds funny),
How about trying someting like:
$the_pwd = $ENV{"PWD"};
Sincerely,
Michael R. Harper
John O'Brien wrote:
> How do I find out what directory my perl script is executing in?
>
> Pointers to relevant FAQ's would be appreciated.
>
> John O'Brien
------------------------------
Date: 19 Feb 1998 04:56:21 -0600
From: psamuels@sampo.REMOVETHIS.creighton.edu (Peter Samuelson)
Subject: Re: Newbie question: script directory
Message-Id: <6ch34l$lh2$1@sampo.creighton.edu>
[John O'Brien]
> > How do I find out what directory my perl script is executing in?
> > Pointers to relevant FAQ's would be appreciated.
[Michael R. Harper <mikihasa@worldnet.att.net>]
> How about trying someting like:
> $the_pwd = $ENV{"PWD"};
Ummm, that's if whoever executed your script was kind enough to set
that variable. Most shells are. Don't count on it. Not to mention
that it might break under anything non-UNIX (dunno, haven't checked).
Use the Cwd module.
--
Peter Samuelson
<sampo.creighton.edu ! psamuels>
------------------------------
Date: Thu, 19 Feb 1998 14:48:24 GMT
From: deviss@cisa.bt.co.uk (Ian Steel)
Subject: Open3
Message-Id: <34ec460c.263681053@news.intra.bt.com>
Does open3 invoke the specified program via a shell?
Ian.
------------------------------
Date: Thu, 19 Feb 1998 15:12:22 +0300
From: Konstantin Tokar <tokar@apmsun.mpei.ac.ru>
To: bkarwin@interbase.com
Subject: Re: Perl 5 DynaLoader errors
Message-Id: <34EC21A6.946184AF@apmsun.mpei.ac.ru>
For Solaris 2.5.1. (x86 & sparc) :
$ set|grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=/opt/SUNWspro/lib:/opt/SUNWspro/SC2.0.1:/opt/SUNWmotif/lib:/usr/openwin/lib:/opt/gnu/lib:/usr/lib:/usr/ccs/lib:
> Then I build by own XS code from scratch after doing 'make clean' and
> 'perl Makefile.PL'. My XS builds okay without errors, but reports an
> error during 'make test':
>
> Can't load './blib/arch/auto/IBPerl/IBPerl.so' for module IBPerl:
> ld.so.1: /usr/local/bin/perl: fatal: relocation error:
> symbol not found: croak:
> referenced in ./blib/arch/auto/IBPerl/IBPerl.so at
> /usr/local/lib/perl5/sun4-solaris/5.00404/DynaLoader.pm line 166
>
> Line 166 in DynaLoader.pm looks like it is the crucial line that calls
> dl_load_file() to attach to a library dynamically.
>
--
Konstantin Tokar
MOSCOW POWER ENGINEERING INSTITUTE, Applied Mathematics Dept.
Email tokar@apmsun.mpei.ac.ru
WWW: http://www.mpei.ac.ru/tokar/
------------------------------
Date: 19 Feb 1998 14:17:42 GMT
From: dmeyer9@ix.netcom.com (David J Meyer)
Subject: Read the FAQ ...need milliseconds
Message-Id: <dmeyer9-1902980919310001@ftl-fl6-24.ix.netcom.com>
Greetings,
I read the FAQ and was disappointed that
milliseconds are not available unless you
have 'sys/syscall' and 'gettimeofday'.
Unfortunately, I do not.
Does anyone have any other suggestions? I
really need milliseconds bad.
David Meyer
Guerilla Software, Inc.
------------------------------
Date: Wed, 18 Feb 1998 16:22:08 GMT
From: patrickq@autobahn.mb.ca (Patrick)
Subject: RTFM ???
Message-Id: <34ec0428.8018554@news.autobahn.mb.ca>
Seems to be a lot of RTFMing in clpm recently.
I would be unemployed if people did if fact RTM as I do help-desk for
some windoze software that has a .hlp file four times the size of the
.exe. As it is, I have a job for life <sigh>
One call I had tho, software's not working for the poor customer.
I walk him thru the various dialogs and we get inconsistent, erratic
results... some controls work, some don't. Can't figure it out,
re-install windows? But I think on it some more, get an idea, think
'naw, no one could be that dumb', ask anyway
"Sir, whats the title of the dialog box?"
"...Windows Help File -"
- he was 'running' the helpful graphics of the software in the online
manual...
Patrick
--
~ Never try to teach a pig to sing. It wastes your time and annoys the pig ~
------------------------------
Date: 18 Feb 1998 06:11:37 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Sort help please!
Message-Id: <6cdu2p$dkt$1@marina.cinenet.net>
Jon Drukman (jsd@hudsucker.gamespot.com) wrote:
: Craig Berry <cberry@cinenet.net> wrote:
: : Joseph N. Hall (joseph@5sigma.com) wrote:
: : : If you use my new Sort::Fields module, you don't have to worry
: : : about what a Schwartzian Transform (that map sort map thing)
: : : is, or how it works.
:
: : Yes, but this hardly improves the soul, now, does it? :)
:
: Joseph's book (Effective Perl Programming) improved my soul. I never
: understood the S.T. until reading the EPP description. Very lucid.
I agree completely. And yes, finally understanding the ST was an
epiphany for me, too. Thanks, Joseph!
: Now that I know how it works, I will happily install Sort::Fields so I
: never have to think about it again. :)
Obviously you've never optimized your code for job security. :-)
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 19 Feb 1998 10:30:53 -0000
From: aeb@brains.cartoon.bt.co.uk (Tony Bass)
Subject: Re: split on ':', but not '\:'
Message-Id: <6ch1kt$eks$1@brains.cartoon.bt.co.uk>
>From article <34EB5E53.E57752C0@shopcfn.com>, by Dan Boorstein <dboorstein@shopcfn.com>:
> Sami Sandqvist wrote:
>> Justin Banks <justinb@cray.com> writes:
>> > Hello -
>> > I'm trying to split a line on colons, except where the colon is
>> > backslashified, and I can't seem to make it happen. I've tried replacing
>> > the sequence '\:' before the split, like so :
[...]
Others have well answered the question as literally asked; but often
one wants backslash-escaping, so that for instance in a\\:b the colon
is a delimiter.
> i had the same question some time ago and got this response from
>>randal schwartz <8csoze7hvu.fsf@gadget.cscaper.com>:
>>Sometimes, the most straightforward way is the most straightforward way:
>> ## presume data in $_:
>> s/\\\|/\0/g; # hide any non-delimiters from the following:
>> @list = split /\|/; # split on real delimiters
>> for (@list) { tr/\0/|/; } # and put back non-delimiters (unescaped now)
which indeed does this sort of backslash-escaping; or an alternative
technique not relying on special characters is
#! /usr/local/bin/perl -w
use strict;
my $s = 'a\\\\b:c\\:d:e\\\\:fg';
print "string($s)\n";
foreach ($s =~ m/(?:\\.|[^\\:])+/g) {
print "field($_)\n";
}
producing output
string(a\\b:c\:d:e\\:fg)
field(a\\b)
field(c\:d)
field(e\\)
field(fg)
where one might then further process the fields to strip one level of
backslash.
Tony Bass
--
# A E Bass Tel: (01473) 645305
# MLB 3/19, BT Laboratories e-mail: aeb@saltfarm.bt.co.uk
# Martlesham Heath, Ipswich, Suffolk, IP5 7RE DO NOT e-mail to From: line
# Opinions are my own
------------------------------
Date: Thu, 19 Feb 1998 13:37:49 GMT
From: dgwilson@gte.net (Douglas Wilson)
Subject: Re: split on ':', but not '\:'
Message-Id: <6chch4$ph9$1@gte1.gte.net>
On 19 Feb 1998 10:30:53 -0000, aeb@brains.cartoon.bt.co.uk (Tony Bass)
wrote:
>From article <34EB5E53.E57752C0@shopcfn.com>, by Dan Boorstein <dboorstein@shopcfn.com>:
>Others have well answered the question as literally asked; but often
>one wants backslash-escaping, so that for instance in a\\:b the colon
>is a delimiter.
which is what I've assumed in:
push (@list,$1) while $line =~ /((\\.|[^:])*)(?::|$)/g;
Cheers,
Douglas Wilson
------------------------------
Date: Thu, 19 Feb 1998 13:18:27 GMT
From: deviss@cisa.bt.co.uk (Ian Steel)
Subject: Taint / exec / stderr
Message-Id: <34ec30b9.258222263@news.intra.bt.com>
I'm trying to ensure my cgi is secure (ish) by using the -T option and
using exec to run system commands. The problem is that I can't figure
out how to detect if the exec'd command has failed, and then how to
collect any output from stderr.
Any ideas please?
Ian Steel.
deviss@cisa.bt.co.uk
------------------------------
Date: Thu, 19 Feb 1998 14:30:06 GMT
From: deviss@cisa.bt.co.uk (Ian Steel)
Subject: Re: Taint / exec / stderr
Message-Id: <34ec41b6.262571668@news.intra.bt.com>
On Thu, 19 Feb 1998 13:18:27 GMT, deviss@cisa.bt.co.uk (Ian Steel)
wrote:
I've just spotted 'open3' in the docs...is this what I should use? I'm
concerned to know whether this will start up a shell though as I'm
trying to avoid shell calls in this CGI perl program.
>I'm trying to ensure my cgi is secure (ish) by using the -T option and
>using exec to run system commands. The problem is that I can't figure
>out how to detect if the exec'd command has failed, and then how to
>collect any output from stderr.
>
>Any ideas please?
>
>Ian Steel.
>deviss@cisa.bt.co.uk
------------------------------
Date: Thu, 19 Feb 1998 11:54:52 +0100
From: Brassel Claude <brassel@hrnet.fr>
Subject: time conversion under perl
Message-Id: <34EC0F7C.7182230F@hrnet.fr>
Hello,
I need to convert the normal time format (like 02/01/1998) in to an
standart unix format ( 88825589 secondes since 1970 ) and I can't found
the perl command to do this.
Can you help me ?
Claude .
------------------------------
Date: 19 Feb 1998 12:30:55 +0100
From: Remove xx to reply <xxTony.Curtis@vcpc.univie.ac.at>
Subject: Re: time conversion under perl
Message-Id: <7xn2fn6dcg.fsf@beavis.vcpc.univie.ac.at>
Re: time conversion under perl, Brassel <brassel@hrnet.fr>
said:
Brassel> Hello, I need to convert the normal time format
Brassel> (like 02/01/1998) in to an standart unix format
Brassel> ( 88825589 secondes since 1970 ) and I can't found
Brassel> the perl command to do this.
See the modules:
Date::DateCalc
and
Date::Manip
(See also POSIX::strftime)
tony
------------------------------
Date: Thu, 19 Feb 1998 07:13:07 -0700
From: Robert Goff <ragoff@sandia.gov>
Subject: Re: Undefined Subroutine in &Module::Package::SubPackage
Message-Id: <34EC3DF3.6F7FB7C9@sandia.gov>
Ok, the why is because NDS::Table::Row is defined *after* the call to
new in the module. I had thought that since the entire module was
pulled in with a use statement all the packages in the module would be
recognized at once. That's not true.
--
=================================================
Robert Goff email: ragoff@sandia.gov
Sandia National Labs Phone: (505)284-3639
------------------------------
Date: Thu, 19 Feb 1998 15:00:48 GMT
From: barberk3@pilot.msu.edu (Babar)
Subject: Unknown Error
Message-Id: <34ec4892.1652215@nntp.msu.edu>
I receive an error in my log file that I don't understand. I'm
running a script, and my output is created in perl with a background
file that I have. When I try to excute my script, I get the error:
wrinkle.jpg failed, errno is 8
I checked out the man page on errno, but no help.
Any suggestions?
------------------------------
Date: 19 Feb 1998 08:04:36 -0500
From: clay@panix.com (Clay Irving)
Subject: Re: Variable Problem.
Message-Id: <6chal4$a5l@panix.com>
In <34EB9EB8.177C@arrowweb.com> Mike <mhanson@arrowweb.com> writes:
>My problem is i made a program that is used to send mail to members on a
>database. But what i want to do is when i enter $name in the form page i
>want it to insert the variable $name into it but the program doesn't it
>just prints $name. Please help.
comp.lang.programming.mindreading is down the hall to the left.
How can anyone help if you don't post the piece of code you are having a
problem with?
--
Clay Irving <clay@panix.com> I think, therefore I am. I think?
http://www.panix.com/~clay/
------------------------------
Date: Thu, 19 Feb 1998 07:55:04 -0500
From: "Bill Jones, FCCJ Webmaster" <webmaster@fccj.org>
Subject: Re: Why is Tom Christiansen so rude?
Message-Id: <34EC2BA8.242C90E@fccj.org>
Todd Hoff wrote:
>
> Douglas McNaught wrote:
>
> > So you're saying we are his customers. I disagree.
>
> You are so missing the point. It's a metaphor. For whatever
> reason tom takes it on himself to answer *a lot* of questions
> from a lot of people. When people deal with other people
> for long periods of time under less than ideal social
> conditions it is not uncommon for such people to begin
> to feel "contempt for their customer." It happens with
> cops, it happens with wait persons, it happens with tech
> support, it happens in sales, it happens.
>
> RTFM
>
> ------------------------------------------------------------------
> tmh@possibility.com http://www.possibility.com/Tmh
> I have no interest in any ship that does not sail fast, for I
> plan to go in harm's way. -- J.P. Jones
Hear, hear! I would say that people have forgotten
to become part of the solution and stop being part
of the problem.
In the venue of the man on the beach, here is one from
real life (funny how real life is...)
Anyways, there was this lady who had been working in
a particular wordprocessing environment for almost 8 years.
She always complained that technical support (which
consisted of me and another gentleman at the time) wasn't
giving her the level of support she required.
This went on for about three years. One day, she asked me
point blank if I could show her enough about what I did
so that she could get a job similar, but two grades lower
(basically a starter support job.)
I said, "Sure. I can show how to do what I do
in about a week or two." She quickly said "Great!
When can we start?" I said "You won't be able to
keep that job..." She said "What?! Why not?"
I said "You've done what you do for almost 10 years.
You still ask, fairly regular, questions relating to
your specific job and still expect me, whom until
a few years ago, had never seen this enviroment,
but yet you still expected me to be able to
support you."
She said "Yeah... What's your point?"
I said, "Well, if you can't support yourself,
how do you expect to support 500 just like you?"
She was pissed off for a few months, but one day,
she came by my office (I had been at this particular
agency for 10 years and, as I was resigning and
moving on to the position I am in now, I thought
she just wanted a parting shot.) She said,
"I thought about what you said, and I was mad as
hell for a while, but you were right. I have worked
at a particular job for long enough to know what I
should do..." I said "Just because something appears
'cool' doesn't mean it is, and doesn't mean it's
for everyone. What I do I do because I love it.
I didn't want to hurt your feelings, but long term,
down the road, you would not be able to support
anyone beyond a certain level. That would not
be fair to you nor your customers."
Today, after almost two years, while not being
in the position she wanted, is well on her way to
getting there - one support question at a time.
So, no, Tom is not rude, just being realistic
in his reponses. Hell, most of us ought to be happy
he is hanging around here long enough to respond.
I am sure, as talented as he is, he must be very,
very busy. And, no, this ain't no kiss ass response,
it's real life and sometimes real life sucks.
But people don't have too.
:-)
Bill
------------------------------
Date: Thu, 19 Feb 1998 09:31:21 -0500
From: "Mohamed Hendawi" <moe@alum.mit.edu>
Subject: Re: Writing a "println" function that works just like "print"
Message-Id: <6chfv4$54$1@ha2.rdc1.ct.home.com>
Thank you chipmunk,
I overlooked that feature, and that should help for now - although it is a
little less clear to a person reading code because they have to always be
aware of the state of the output record separator for a given "print"
statement.
I'm still interested in whether or not it would be possible to write a
function for this. Am I correct in saying that this is not a function
prototype issue?
Moe (moe@alum.mit.edu)
Chipmunk wrote in message <34EBD717.B3EB1E9C@coos.dartmouth.edu>...
>[posted and mailed]
>
>(comp.lang.perl no longer exists. If it appears on your system, ask your
news
>admin to remove it.)
>
>Mohamed Hendawi wrote:
>>
>> I would like to implement a simple function "println" that works
>> exactly like the built-in perl print function, except that it appends
>> a newline to the printed output.
>
>Does the $\ variable suit your needs, or do you really need a separate
function?
>
>Find out more about $\ (aka $OUTPUT_RECORD_SEPARATOR aka $ORS) in the
>documentation for perlvar.
>
>--
> _ / ' _ / rjk@coos.dartmouth.edu
>( /)//)//)(//)/( chipmunk@m-net.arbornet.org
> / http://www.ziplink.net/~rjk/
------------------------------
Date: 18 Feb 1998 01:39:54 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: WWW form
Message-Id: <6cde5a$ecb$2@comdyn.comdyn.com.au>
In article <34EA13C6.35AD22F1@avtel.com>,
Dave Spencer Wysinger <davew@avtel.com> writes:
> This simple script will puke a form to an e-mail:
[snip]
No CGI.pm?
No use of a module to send email?
not a good idea.
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au |
Commercial Dynamics Pty. Ltd. | Curiouser and curiouser, said Alice.
NSW, Australia |
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 1931
**************************************