Show
Ignore:
Timestamp:
06/09/07 03:50:55 (3 years ago)
Author:
eevee
Message:

Added a simple IV calculator to Perlbui.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/script/perlbui.pl

    r179 r229  
    44# this should not be this hard! 
    55use File::Basename; 
     6use File::Spec; 
    67use Cwd qw/abs_path/; 
    7 use lib abs_path(( fileparse($0) )[1] . '../lib'); 
     8 
     9# change directories to the root so we can find veekun files 
     10BEGIN { 
     11    my (undef, $path) = fileparse( File::Spec->rel2abs($0) ); 
     12    chdir $path; 
     13    chdir '..';  # we run from script/ 
     14} 
     15use lib abs_path('lib'); 
    816 
    917use Net::IRC; 
     
    1422# BEGIN SETUP 
    1523 
     24# need to find other veekun files.. 
     25 
    1626# XXX: only one supported at a time right now 
    1727my %Connections = ( 
    18     'irc.veekun.com' => [ '#veekun' ], 
     28#    'irc.veekun.com' => [ '#agnph' ], 
     29    'irc.pocketmonsters.net' => [ '#bulbagarden' ], 
    1930); 
    2031