Changeset 7191
- Timestamp:
- 09/28/05 23:11:18 (3 years ago)
- Location:
- perl5
- Files:
-
- 3 modified
-
PIL-Run/lib/PIL/Run/PrimP5.pm (modified) (1 diff)
-
Perl6-Value/lib/Perl6/Code.pm (modified) (2 diffs)
-
Perl6-Value/lib/Perl6/Junction.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
perl5/PIL-Run/lib/PIL/Run/PrimP5.pm
r7179 r7191 193 193 MULTI SUB lcfirst ($xx) { p6_from_s( lcfirst(p6_to_s($xx)) ) }; 194 194 MULTI SUB uc ($xx) { p6_from_s( uc(p6_to_s($xx)) ) }; 195 MULTI SUB ucfirst ($xx) { p6_from_s( ucfirst(p6_to_s($xx)) ) };195 MULTI SUB ucfirst ($xx) { p6_from_s( ucfirst(p6_to_s($xx)) ) }; 196 196 MULTI SUB capitalize ($xx) { 197 197 my $string = $xx->unboxed; -
perl5/Perl6-Value/lib/Perl6/Code.pm
r7189 r7191 224 224 my ($self, @arguments) = @_; 225 225 #warn "DO @arguments\n"; 226 227 226 # is there a junction in the arg list? 228 227 for my $i ( 0 .. $#arguments ) { 229 228 my $arg = $arguments[$i]; 230 if ( $arg =~ /Junction/) {229 if ( $arg->isa( 'Junction' ) ) { 231 230 #warn "HAS JUNCTION ", $arg->str->unboxed; 232 231 my @items = @{$arg->things}; 233 #warn "ITEMS @items"; 234 232 #warn "ITEMS @items = @{[ map { Perl6::Value::stringify($_) } @items ]}"; 235 233 my @r; 236 234 for my $element ( @items ) { … … 239 237 push @r, $self->do( @a ); 240 238 } 239 #warn "RETURNING @r = @{[ map { Perl6::Value::stringify($_) } @items ]}"; 241 240 my $j = Junction->new; 242 241 $j->type( $arg->type ); -
perl5/Perl6-Value/lib/Perl6/Junction.pm
r7186 r7191 41 41 } 42 42 @res = sort { Perl6::Value::identify($a) cmp Perl6::Value::identify($b) } @res; 43 my $last_id = '';43 my $last_id = rand(); 44 44 #warn "SORTED @res"; 45 45 @res = grep { 46 46 my $id = Perl6::Value::identify( $_ ); 47 #warn "ID $id"; 47 48 $id eq $last_id ? 0 : ( $last_id = $id, 1 ) 48 49 } @res;
