[19103] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1298 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 13 09:10:45 2001

Date: Fri, 13 Jul 2001 06:10:17 -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: <995029817-v10-i1298@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Fri, 13 Jul 2001     Volume: 10 Number: 1298

Today's topics:
        Perl 'time' command. <osbornelee@hotmail.com>
    Re: Perl 'time' command. (Villy Kruse)
    Re: Perl 'time' command. (Logan Shaw)
    Re: Perl 'time' command. <osbornelee@hotmail.com>
    Re: Perl 'time' command. <tp601553@cia.gov>
    Re: Perl and javascript question (dave)
    Re: rand confusion (Philip Lees)
    Re: Read/not read info from POP3 server (Jitendra Agrawal)
    Re: Recommendations for a 2nd book on Perl (dave)
    Re: sendmail limitations? nobull@mail.com
        Travel cgi scripts <stevec@ntlworld.com>
    Re: turn off redirect in LWP? <osass@ix.urz.uni-heidelberg.de>
    Re: Using a variable in a regular expression <gnarinn@hotmail.com>
    Re: Using a variable in a regular expression (Pete)
        Using long integer in PERL <benghua@NOSPAMMING.cyberworks.net.sg>
        vvp:Changing Unix Environments with Perl? <vprasad@americasm01.nt.com>
    Re: vvp:Changing Unix Environments with Perl? (Rafael Garcia-Suarez)
    Re: vvp:Changing Unix Environments with Perl? nobull@mail.com
    Re: what use is the folder (Rafael Garcia-Suarez)
    Re: Where is MD5 <gnarinn@hotmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 13 Jul 2001 09:51:34 +0100
From: "Lee Osborne" <osbornelee@hotmail.com>
Subject: Perl 'time' command.
Message-Id: <995014384.11197.0.nnrp-12.c2de1f0e@news.demon.co.uk>

Hi all,

I need to change the dates of news articles, I am storing the creation date
by using the perl 'time' command. How do I convert the current date in the
dd/mm/yyyy format to the 'time' format?

The algorithm would be very complicated and would have to calcualte the
number of seconds since 1970. However leap years would have to be taken into
account.

Is it better to store the article creation date in another format, so that I
can sort and search by this field if required?

Any help appreciated,

Lee




------------------------------

Date: 13 Jul 2001 09:06:27 GMT
From: vek@pharmnl.ohout.pharmapartners.nl (Villy Kruse)
Subject: Re: Perl 'time' command.
Message-Id: <slrn9ktegj.uhs.vek@pharmnl.ohout.pharmapartners.nl>

On Fri, 13 Jul 2001 09:51:34 +0100,
    Lee Osborne <osbornelee@hotmail.com> wrote:


>Hi all,
>
>I need to change the dates of news articles, I am storing the creation date
>by using the perl 'time' command. How do I convert the current date in the
>dd/mm/yyyy format to the 'time' format?
>
>The algorithm would be very complicated and would have to calcualte the
>number of seconds since 1970. However leap years would have to be taken into
>account.
>
>Is it better to store the article creation date in another format, so that I
>can sort and search by this field if required?
>


Checkout POSIX::mktime.



Villy


------------------------------

Date: 13 Jul 2001 04:08:57 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: Perl 'time' command.
Message-Id: <9imdr9$k8s$1@charity.cs.utexas.edu>

In article <995014384.11197.0.nnrp-12.c2de1f0e@news.demon.co.uk>,
Lee Osborne <osbornelee@hotmail.com> wrote:
>I need to change the dates of news articles, I am storing the creation date
>by using the perl 'time' command. How do I convert the current date in the
>dd/mm/yyyy format to the 'time' format?

Do a "perldoc Time::Local" to find out how.

>The algorithm would be very complicated and would have to calcualte the
>number of seconds since 1970. However leap years would have to be taken into
>account.

Yep.  Luckily, the work is done for you.  (And actually it uses a
sneaky and clever trick, but you don't need to worry about that.)

>Is it better to store the article creation date in another format, so that I
>can sort and search by this field if required?

I guess that would depend on what you're trying to accomplish.  :-)

Note that it's a lot easier to compare two times (even if in a weird
format) than it is to convert between them.  And comparing is probably
all you need to search and sort.  So, it may not be worthwhile to store
them.

Note that if you're dealing with Usenet news articles, it may be more
complicated than that, because there are probably several different
date formats used, and probably there are lots of timezones involved as
well.

For this reason and a few others, you might want to take a look at the
Date::Calc module.  It has a function called Parse_Date() that can
supposedly parse a variety of formats.  The URL for that module is
http://search.cpan.org/search?dist=Date-Calc .

You might also want to look at Date::Parse, although I'm not sure if
its parsing abilities are better or not.  See
http://search.cpan.org/search?dist=TimeDate for it.

Hope that helps.

  - Logan
-- 
my  your   his  her   our   their   _its_
I'm you're he's she's we're they're _it's_


------------------------------

Date: Fri, 13 Jul 2001 10:15:27 +0100
From: "Lee Osborne" <osbornelee@hotmail.com>
Subject: Re: Perl 'time' command.
Message-Id: <995015817.11875.0.nnrp-12.c2de1f0e@news.demon.co.uk>

Thanks guys.

Don't need to worry about time zones.

I could store the date in reverse order, ie.

   Friday 13th 2001 would become 20010713

   $funnyDate = "20010713";

This could then be parsed with the unpack command:

   ($yyyy, $mm, $dd) = unpack("A4 A2 A2", $funnyDate);

Allowing date comparisons and also sort and search operations :-)

What do you think?

Thanks,

Lee.

"Lee Osborne" <osbornelee@hotmail.com> wrote in message
news:995014384.11197.0.nnrp-12.c2de1f0e@news.demon.co.uk...
> Hi all,
>
> I need to change the dates of news articles, I am storing the creation
date
> by using the perl 'time' command. How do I convert the current date in the
> dd/mm/yyyy format to the 'time' format?
>
> The algorithm would be very complicated and would have to calcualte the
> number of seconds since 1970. However leap years would have to be taken
into
> account.
>
> Is it better to store the article creation date in another format, so that
I
> can sort and search by this field if required?
>
> Any help appreciated,
>
> Lee
>
>




------------------------------

Date: Fri, 13 Jul 2001 11:04:18 GMT
From: Tweetie Pooh <tp601553@cia.gov>
Subject: Re: Perl 'time' command.
Message-Id: <Xns90DD7ACDDDB9BTweetiePooh@62.253.162.108>

"Lee Osborne" <osbornelee@hotmail.com> honoured comp.lang.perl.misc on Fri 13 
Jul 2001 10:15:27a with news:995015817.11875.0.nnrp-
12.c2de1f0e@news.demon.co.uk:

> Thanks guys.
> 
> Don't need to worry about time zones.
> 
> I could store the date in reverse order, ie.
> 
>    Friday 13th 2001 would become 20010713
> 
>    $funnyDate = "20010713";
> 
> This could then be parsed with the unpack command:
> 
>    ($yyyy, $mm, $dd) = unpack("A4 A2 A2", $funnyDate);
> 
> Allowing date comparisons and also sort and search operations :-)
> 
> What do you think?
> 
> Thanks,
> 
> Lee.

Date::Manip does all sorts of things like this all for you.


------------------------------

Date: 13 Jul 2001 05:36:57 -0700
From: usted@cyberspace.org (dave)
Subject: Re: Perl and javascript question
Message-Id: <e2c00ae.0107130436.73ad8484@posting.google.com>

BCC <bcoon@sequenom.com> wrote in message news:<3B4E271D.393708C5@sequenom.com>...
> Hi, I have a question on integrating perl and javascript...
> 
> What I have is a hash like this:
> %hash = ( a => [1, 10],
>           b => [11,20],
>           c => [21,30]);
> etc, etc.
> 
> In my web page, a, b, and c are in a popup_menu.  What I need to have
> happen is if 'b' is selected, some other form element is set to 11.
> 
> Logically, I think I need to do this:
> 1. Get the value of the popup_menu selection
> 2. Return this value to the hash as the key
> 3. Have hash spit out values with:
>    ($val1, $val2) = @{$hash{$value_returned_from_jscript}};
> 4. Pass $val1 or $val2 to another jscript to set element value
> 
> What I am not sure on is how to return the value of the jscript to my
> perl hash.
> 
> Maybe I am thinking about this from the wrong direction....

You are.  As you may not know, JavaScript is client-side and Perl is
server-side.  What this means is that in order for you to do what you
want is to pass the value selected to the Perl script, which then gets
it, does something with it, and then reloads the entire page again.

You will probably not want this unless you really need something on
the server.  It sounds like you want a form element set to something
when another element is set to something else?  Sort of like webpages
where you say US under country and then the next dropbox is the states
magically, etc. for each country?

If that is what you are trying to do I would suggest just using
JavaScript for the whole thing.  Have it check the value of the
dropdown and then it can write out a the 11 value to the form field. 
There should be code all over the place for this kind of thing, check
js newsgroups.

dave


------------------------------

Date: Fri, 13 Jul 2001 11:07:45 GMT
From: pjlees@ics.forthcomingevents.gr (Philip Lees)
Subject: Re: rand confusion
Message-Id: <3b4ecf40.77968693@news.grnet.gr>

On 13 Jul 2001 01:46:43 -0500, logan@cs.utexas.edu (Logan Shaw) wrote:

>In article <3b4e8f0f.61535393@news.grnet.gr>,
>Philip Lees <pjlees@ics.forthcomingevents.gr> wrote:
>>On Thu, 12 Jul 2001 15:20:08 +0100, Paul Boardman
>><peb@bms.umist.ac.uk> wrote:
>>
>>>Philip Lees wrote:
>>>
>>>> What I didn't understand was how the <> operator could be an
>>>> argument for rand? According to the docs the argument should be a
>>>> positive number.
>
>>>So you see, you can read in the positive number from a filehandle.
>
>>Perl is usually so smart I was surprised it got confused by a simple
>>condition.
>
>It didn't get confused by a simple condition.  It got confused by a
>stream of bytes that would make sense either as a simple condition or
>as a read from a filehandle being an argument to a function that
>happens to be able to take an argument.

(First, let me say I don't want to give the impression I'm whining
here - I've just got sufficiently involved with Perl programming that
I'm starting to get interested in what makes it all tick.)

But ... the stream of bytes would only make sense as a filehandle read
if the < was followed by a > later in the line: otherwise it can only
be a simple condition. Given Perl's amazing string parsing
capabilities I would have expected the compiler to be able to
discriminate between the two cases, rather than just throwing up an
error. Something similar could be said about < versus <<.

Playing around, I was quite surprised to find that this works:

print rand <<"HERE";
4
HERE

I also noticed that what goes for rand also goes for chomp and length.
That's not surprising, I suppose (at last! something that _doesn't_
surprise me).

Phil
-- 
Philip Lees
ICS-FORTH, Heraklion, Crete, Greece
Ignore coming events if you wish to send me e-mail
'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer


------------------------------

Date: 13 Jul 2001 04:37:05 -0700
From: jeet@dexponet.com (Jitendra Agrawal)
Subject: Re: Read/not read info from POP3 server
Message-Id: <6a1385f0.0107130337.13ffe8eb@posting.google.com>

Hi,

morten@tangeraas.com (=?ISO-8859-1?Q?Morten_Tanger=E5s?=) wrote in message news:<1ewe929.8bao8n15ropnyN%morten@tangeraas.com>...
> I'm making an online mailreader, and have some questions:
> 
> First of all, is there any sertain way to catch information from a POP3
> mailserver if a message is read or not? I know that I could use the
> "Status" field in the header, but as far as I know, this is not a
> standard field on all POP3 servers, and it will therefor not allways
> give the correct information.
> 

UIDL is the best method, what you might do is whenever a message is
"retr"ieved you will mark the UIDL as read (in a local index/db).

> I haven't seen som many mail readers that catch this information
> correctly, but I have seen some (i.e. IMail Web Messagin v6.0 from
> Ipswitch Inc., which is used on several Windows NT mail servers, as a
> web interface to the POP3 server) who gets the right information. 
> 
> How do they do it? Are there any mail/POP3 commands to use (like uidl
> and stuff) to get correct information about this?
> 
> 
> I also would like som opinions about two values; timeout and number of
> mails per summary page.
> 
> The timeout a security value in seconds. If the user is inactiv in more
> than x number of secounds (now set to 1000), the user has to enter the
> username and password all over to enter the mail account.
> This also counts when the user is writing / replying an e-mail, so it
> the timeout value shouldn't be to short either. Any thoughts?
> 
> The other value is number of mails which by default is to be shown per
> summary page. This is by default set to 15 e-mails. But when a user has
> logged in, she/he can choose an other value which overrides the default
> value. Anyway, any thougts about what the default value should be?
Are you planning to keep this POP connection open all the time for a
session till the user logs out.

I guess better way will be to relogin every time.

You might like to give a "welcome" page which tells just about any
unread mails.
using "List" and "UIDL"

and use "TOP 0" to retrieve header. It should left to the user as how
many mail summaries he/she wants to see, normally webmail service
providers keep these limits as "10-200".

> 
> By the way, for those of you who wants to try the beta of the online
> e-mail reader, send me an e-mail for more information
> (morten@tangeraas.com)!
> 
> Thanks!
> 
> Morten Tangeraas

regards,
jeet.
http://www.dexponet.com/


------------------------------

Date: 13 Jul 2001 05:23:42 -0700
From: usted@cyberspace.org (dave)
Subject: Re: Recommendations for a 2nd book on Perl
Message-Id: <e2c00ae.0107130423.d461c5b@posting.google.com>

> I don't know exactly what the reason is behind why DBI shouldn't be
> used for production (security and unstability are two words that come
> to mind, though).  These "accusations," as may be, aren't necessarily
> correct.  I didn't suggest that DBI was a toy--but I can understand
> how you may feel that I suggested that it was if you've used DBI
> extensively (I didn't intend any insult).  Thanks for letting me know
>that DBI can indeed be used in a production environment.  
> 
> Dave--Other than the time factor, another reason that I haven't read
> every page of Programming Perl is that it is too advanced for me.  I'm
> relatively new to the language (and to programming, for that matter),
> so many of the concepts presented in Programming Perl are beyond my
> current level, which is why I need a good second book.  I think there
> must be some mid-ground between Learning Perl and Programming Perl (I
> bought Programming Perl based upon the stellar reviews it received at
> bookpool.com--I should have read them more carefully).
> 
> Thanks.

No problem, I didn't mean to sound mean or anything, but it would be a
waste if you didn't use DBI because you heard some ridiculous
misinformation.  DBI is easy to use and very clean.  Getting it up and
running can be tricky....

You are right about the 2nd book problem.  LP to PP is the normal
path, but PP has Larry's influence all over it and as such is very
creative, strangely organized, and can be overwhelming.  I would
suggest reading the parts of Programming Perl that you may need (a few
chapters in the beginning, and look over the modules and their uses)
and then hang around this newsgroup some. You can learn a lot from
listening to Q&A from people around here.  Also read the FAQ and there
are other, non-Oreilly books around about Perl, but you would never
hear someone like me say that here :)

good luck with everything,

dave


------------------------------

Date: 13 Jul 2001 13:15:53 +0100
From: nobull@mail.com
Subject: Re: sendmail limitations?
Message-Id: <u93d8181om.fsf@wcl-l.bham.ac.uk>

Mike Ragsdale <mragsdal@utk.edu> writes:

> Newsgroups: comp.lang.perl.misc
> Subject: sendmail limitations?

What makes you suspect that the fact that sendmail is being called by
Perl is likely to be pertenant?  (As it happens I have encounterd this
problem more often in shell scripts).

> while (@row = $sth->fetchrow_array()){
>    open(MAIL,"|$mailprog -t");            # When this section
>    print MAIL "To: $row[0]\n";            # is commented out,
>    print MAIL "From: *******\n";          # the script finishes
>    print MAIL "Subject: $emailsubj\n";    # and gives me a total
>    print MAIL "Dear $row[1],\n\n";        # of 7674 recipients
>    print MAIL "$emailtext\n";             # without the comments
>    close (MAIL);                          # it fails after 3286
> }

The only Perl issue I can see is that you should be checking error
conditions on open() and close().  If you had done this you'd have got
valuable information to help you analyse this problem.

> So what is the problem?  What is the limiting factor?

Your sendmail is probably configured to default to background
delivery, that means that each sendmail process you start will
fork-off-and-die.  You are probably running out of memory or process
table slots (either totally or your quota).

Try using sendmail in queued or foreground delivery modes (for details
RTF(sendmail)M).

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: Fri, 13 Jul 2001 12:17:40 +0100
From: "stevec" <stevec@ntlworld.com>
Subject: Travel cgi scripts
Message-Id: <CHA37.34959$B56.6825370@news2-win.server.ntlworld.com>

Hello

I am looking for examples of scripts that perform searches on UK Tour
Company's databases (Airtours, First Choice etc) for late package holidays
or flights, and finds the lowest price then formats into an html table.

An example of this would be the site bargainholidays.com

If anyone can point me in the right direction I would be grateful.

Thanks
Steve




------------------------------

Date: Fri, 13 Jul 2001 14:43:46 +0200
From: Oliver Sass <osass@ix.urz.uni-heidelberg.de>
Subject: Re: turn off redirect in LWP?
Message-Id: <9imqe4$lu0$1@news.urz.uni-heidelberg.de>

Hello Rafael!

(...)
> 1. use simple_request() instead of request()
>
> or
>
> 2. make a subclass of LWP::UserAgent that overrides redirect_ok().
(...)

Yes, right. I had found both of them as well. Well, but in both cases, the 
Agent doesn't make the response I had been waiting for:
When I login to the Webserver I tried to work on via telnet on port 80, 
doing a simple get-request, I receive a special html-page telling me vital 
informations (besides that my "webclient" doesn't support redirect).
When I try to use the methods in the LWP perldoc, the server sends a 
webpage asking me for a password... strange, isn't it?
Nevertheless, I will sniff around in the http-headers for a while.
Thanks for your help,
Oliver

-- 
## Oliver
## sass@gw.sino.uni-heidelberg.de
## Heidelberg, Germany


------------------------------

Date: Fri, 13 Jul 2001 10:27:13 +0000
From: gnari <gnarinn@hotmail.com>
Subject: Re: Using a variable in a regular expression
Message-Id: <995020033.47660633828491.gnarinn@hotmail.com>

In article <slrn9krsqm.jbi.tadmc@tadmc26.august.net>,
Tad McClellan <tadmc@augustmail.com> wrote:
>gnari <gnarinn@hotmail.com> wrote:
>
>
>>  $pskformat = "(\\d\\d[A-Z][A-Z]\\d\\d\\d\\d\)" ;
>
>
>Yuck!
>
>
>   $pskformat = '(\d\d[A-Z][A-Z]\d\d\d\d\)' ;
>
yes, i know, but i was triing to make clear to the original poster
what was wrong, so i made minimal changes

gnari


------------------------------

Date: Fri, 13 Jul 2001 12:42:53 GMT
From: Peter@angeltec.fsnetNOTTHIS.co.uk (Pete)
Subject: Re: Using a variable in a regular expression
Message-Id: <3b4ed3a1.352257932@news.btinternet.com>

Hi,

thanks for that - and to Uri.

>Not that it has anything to do with the solution, but you could skip all
>that BS with escaping chars if you stuff the string between single quotes.

I've been thrown into this and don't understand the difference between
single and double quotes yet - or lots of other things come to that!

>qr// is what you want.
This system is perl 4 and says something about qr being a future
reserved word

It's working now with 
$pskformat = '(\d\d[A-Z][A-Z]\d\d\d\d)'

>  $pskformat = qr"(\d\d[A-Z][A-Z]\d\d\d\d)";
>  if($psk =~ $pskformat) { #do something }
Why is the 'm' not required somewhere in the string?  Or is that the
default?  e.g. 
if($psk =~ m"$pskformat) { #do something }

Thanks again,

Pete
>



------------------------------

Date: Fri, 13 Jul 2001 21:01:09 +0800
From: "Beng" <benghua@NOSPAMMING.cyberworks.net.sg>
Subject: Using long integer in PERL
Message-Id: <3b4ef0c2@news>

Just a short question :

I have an array with big numbers, and I am supposed to write a script to
crunch these numbers and do arithmetric sums on them. The main problem is
that those numbers are something like 677621651341564.2345, and they exist
as strings in the array.

I am trying to convert these strings into some kind of long integer that
allows me to perform arithmetric functions. The int command won't work for
my case. Anyone got any suggestions on how I could tackle this problem???

Any help would be appreciated.

Thanks a lot.




------------------------------

Date: Fri, 13 Jul 2001 07:34:49 -0400
From: "Prasad, Victor [FITZ:K500:EXCH]" <vprasad@americasm01.nt.com>
Subject: vvp:Changing Unix Environments with Perl?
Message-Id: <3B4EDCD9.127E7E5F@americasm01.nt.com>

Hello,

I have a script that is trying to change a Unix environment variable:

!/usr/bin/perl
system(`export INFORMIXSERVER=database1`);
system("env | grep INFORMIXSERVER");
 

Output:

INFORMIXSERVER=database2  <--no change to database1


I have 2 different databases I need to access from 1 script - is this
possible?  I have tried it with the Unix setenv command to no avail
either (setenv INFORMIXSERVER database1).


Thanks,

V


------------------------------

Date: 13 Jul 2001 11:50:11 GMT
From: rgarciasuarez@free.fr (Rafael Garcia-Suarez)
Subject: Re: vvp:Changing Unix Environments with Perl?
Message-Id: <slrn9kto4c.htt.rgarciasuarez@rafael.kazibao.net>

Prasad, Victor wrote in comp.lang.perl.misc:
> Hello,
> 
> I have a script that is trying to change a Unix environment variable:
> 
> !/usr/bin/perl
> system(`export INFORMIXSERVER=database1`);
> system("env | grep INFORMIXSERVER");

system() forks a shell process. This shell process executes setenv.
Thus, the environment change is only visible from within this shell
process and its children (and it has no children here).

To change the environment *of the perl process itself*, alter the %ENV
hash. (%ENV is described in the perlvar manual).

See also "perldoc -q environment".

-- 
#!/usr/bin/perl -p
BEGIN { *ARGV=*DATA }
__END__
Just another Perl hacker,


------------------------------

Date: 13 Jul 2001 13:18:00 +0100
From: nobull@mail.com
Subject: Re: vvp:Changing Unix Environments with Perl?
Message-Id: <u9zoa96n0n.fsf@wcl-l.bham.ac.uk>

"Prasad, Victor [FITZ:K500:EXCH]" <vprasad@americasm01.nt.com> writes:

> I have a script that is trying to change a Unix environment variable:

Plese see FAQ.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: 13 Jul 2001 07:35:22 GMT
From: rgarciasuarez@free.fr (Rafael Garcia-Suarez)
Subject: Re: what use is the folder
Message-Id: <slrn9kt96k.h3g.rgarciasuarez@rafael.kazibao.net>

Alan wrote in comp.lang.perl.misc:
> i am new to perl.My web host has given me 3 folders
> the root folder and cgi-bin folder and a folder called bin.
> 
> The root and cgi-bin i can see the point of.
> 
> The bin folder with permissions of 111 i cant see no use for probably cus im
> new to this-Can somebody shed some light on this for me.
> Should i just delete the thing?

No. 111 means that you can use whatever is in this directory, but not
change this directory contents or browse it.

I suppose that it contains miscellaneous common Unix utilities, such as
ls(1), for example, that might be used by your Perl programs. (Although
I don't see the point of using ls(1) in a Perl program.) Your hosting
service should have some documentation on what actually is in this folder.

It's a common practice to put a subset of the Unix commands in a /bin
directory when you run in a chroot(2)'ed environment. But in this case
it's strange that you don't have a /dev directory besides /root, /bin
and /cgi-bin.

-- 
Rafael Garcia-Suarez / http://rgarciasuarez.free.fr/


------------------------------

Date: Fri, 13 Jul 2001 10:22:30 +0000
From: gnari <gnarinn@hotmail.com>
Subject: Re: Where is MD5
Message-Id: <995019750.837647838052362.gnarinn@hotmail.com>

In article <1ewgfan.1uylxjh49fmeqN%otto.wyss@bluewin.ch>,
Otto Wyss <otto.wyss@bluewin.ch> wrote:

[
Otto: you are still skipping the attribution.
the attribution is the bit that says 'In article blabla, suchandsuch says:'
]

>> >perldoc *MD5*
>> 
>> personally, i often use lthe command locate for this purpose.
>> for example:  locate MD5.pm
>> on your system you may have something different, but most have
>> some way of searching for files
>> 
>That does not help if the name isn't exactly known. That is one of the
>biggest problem a nonexpert has to face.

then there is the good old (on unix):
find perl -e 'print "@INC"' -name '*MD5.pm' -print

or for ALL modules in @INC:
find perl -e 'print "@INC"' -name '*.pm' -print

gnari


------------------------------

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.  

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 1298
***************************************


home help back first fref pref prev next nref lref last post