The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Perl Question by nimdokk2002-07-01 15:04:22
  Date::EzDate by mikosullivan2006-11-19 12:55:59
    thanks by nimdokk2002-07-01 17:18:11
      using modules by mikosullivan 2002-07-01 17:28:38
Yup, you can use most modules with two steps: add a directory to you @INC path, and put the module in that directory tree. For example, say you want to use Date::EzDate. First, decide where you want to put your library directory. Let's say you want it in a dir named lib which is in your home directory, /homes/nimdokk/lib. You would put Date::EzDate into the Date/ directory: /homes/nimdokk/lib/Date/EzDate.pm. Then, set the lib directory near the top of your script, and use Date::EzDate:
#!/usr/local/bin/perl -wT
use strict;
use lib '/homes/nimdokk/lib';
use Date::EzDate;

-Miko

[ Reply ]
        right by nimdokk2002-07-01 17:54:48

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)