Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Time Issues

by ImpalaSS (Monk)
on Dec 01, 2000 at 19:17 UTC ( [id://44373]=note: print w/replies, xml ) Need Help??


in reply to Time Issues

Hey again,
Two things, i cant install any modules that don't come with perl.. for many reasons. and, i thought i put the code in <code> tags, but, i must have fouled something up.
Here is the code i use
$date2 = $date; if ($date ne "today"){ newdate = substr($date2, 0, 2); $enddate = substr($date2, 2, 5); $newdate++; $date2 = $newdate.$enddate; }


Dipul

Replies are listed 'Best First'.
Re: Re: Time Issues
by clemburg (Curate) on Dec 01, 2000 at 20:38 UTC

    Oh yes, you can do that if you have any write access on a machine. Let's say you want all the modules to go in your personal library directory /home/impalass/lib/perl, then you simply say during the normal install procedure:

    > perl Makefile.PL LIB=/home/impalass/lib/perl

    For using the modules, there exist several ways to get your personal library into the @INC library search path: the most convenient one is probably to set the PERL5LIB environment variable in your login profile. And yes, this works on Win32 systems, too.

    For more on this, read Effective Perl Programming, pages 163 to 175 (Chapter "Using Packages and Modules").

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com

Re: Re: Time Issues
by Fastolfe (Vicar) on Dec 02, 2000 at 06:24 UTC
    Well if you're going to re-invent the wheel, at least take a look at the wheels people are recommending to you and see if you can copy bits and pieces for your purposes.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://44373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found