Changeset 4

Show
Ignore:
Timestamp:
2007/09/02 18:37:17 (1 年 ago)
Author:
piroli
Message:

スクリプトの実行パスを取得するよう修正

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • twttmixi/trunk/twttmixi.pl

    r1 r4  
    11#!/usr/bin/perl 
    22$|++; 
    3 use lib './lib'; 
     3 
     4my $MYDIR; 
     5BEGIN { 
     6    $MYDIR = $0 =~ m!(.*[/\\])! ? $1 : './'; 
     7
     8 
     9use lib "${MYDIR}lib"; 
    410use strict; 
    511use warnings; 
     
    2228sub getEntryTitle { 
    2329    <<PERLHEREDOC; 
    24 [twitter] º£Æü€ÎÒ쀭 
     30[twitter] º£ÆEÎҁE­ 
    2531PERLHEREDOC 
    2632} 
     
    5460my $NET_TIMEOUT         = 30; 
    5561my $TWITTER_API         = "http://twitter.com/statuses/user_timeline/$TWITTER_USERNAME.xml"; 
    56 my $CACHE_FILENAME      = "$0.cache"; 
     62my $CACHE_FILENAME      = "${MYDIR}.cache"; 
    5763 
    5864### Print message