Changeset f3ef4f6 in lab.git for twitter/twitterbot.pl


Ignore:
Timestamp:
Oct 5, 2010 9:48:40 AM (14 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
567a134
Parents:
139622c
Message:
  • FIX: warning 'Use of uninitialized value $ARGV[0]' on non debug mode

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@64 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • twitter/twitterbot.pl

    r139622c rf3ef4f6  
    1515use Date::Parse qw(str2time); 
    1616 
    17 sub VERBOSE () { $ARGV[0] eq 'verbose' }; 
    18 sub DEBUG   () { VERBOSE or $ARGV[0] eq 'debug' }; 
     17my $_execmode = $ARGV[0] || 0; 
     18sub VERBOSE () { $_execmode eq 'verbose' }; 
     19sub DEBUG   () { VERBOSE or $_execmode eq 'debug' }; 
    1920use Data::Dumper; 
    2021 
Note: See TracChangeset for help on using the changeset viewer.