[BACK]Return to Entry.pm CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo / lib / Text / Todo

Diff for /todotxt/Text-Todo/lib/Text/Todo/Entry.pm between version 1.1 and 1.2

version 1.1, 2009/07/10 23:26:14 version 1.2, 2009/07/10 23:28:28
Line 1 
Line 1 
 package Text::Todo::Entry;  package Text::Todo::Entry;
   
 # $RedRiver$  # $RedRiver: Entry.pm,v 1.1 2009/07/10 22:26:14 andrew Exp $
   
 use warnings;  use warnings;
 use strict;  use strict;
Line 55 
Line 55 
         my ($self) = @_;          my ($self) = @_;
         my $ident = ident($self);          my $ident = ident($self);
   
         return sort keys %{ $contexts_of{$ident} };          my @contexts = sort keys %{ $contexts_of{$ident} };
           return wantarray ? @contexts : \@contexts;
     }      }
   
     sub in_context {      sub in_context {
Line 67 
Line 68 
         my ($self) = @_;          my ($self) = @_;
         my $ident = ident($self);          my $ident = ident($self);
   
         return sort keys %{ $projects_of{$ident} };          my @projects = sort keys %{ $projects_of{$ident} };
           return wantarray ? @projects : \@projects;
     }      }
   
     sub in_project {      sub in_project {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>