Changeset 229 for veekun/trunk/script/perlbui.pl
- Timestamp:
- 06/09/07 03:50:55 (3 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/script/perlbui.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/script/perlbui.pl
r179 r229 4 4 # this should not be this hard! 5 5 use File::Basename; 6 use File::Spec; 6 7 use 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 10 BEGIN { 11 my (undef, $path) = fileparse( File::Spec->rel2abs($0) ); 12 chdir $path; 13 chdir '..'; # we run from script/ 14 } 15 use lib abs_path('lib'); 8 16 9 17 use Net::IRC; … … 14 22 # BEGIN SETUP 15 23 24 # need to find other veekun files.. 25 16 26 # XXX: only one supported at a time right now 17 27 my %Connections = ( 18 'irc.veekun.com' => [ '#veekun' ], 28 # 'irc.veekun.com' => [ '#agnph' ], 29 'irc.pocketmonsters.net' => [ '#bulbagarden' ], 19 30 ); 20 31
