Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

jeffa's scratchpad

by jeffa (Bishop)
on Jun 01, 2004 at 16:56 UTC ( [id://358213]=scratchpad: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    [%- FOREACH thing = things %]
    <small>[% thing %]</small>
    [%- END %]
    
  2. or download this
    #!/usr/bin/perl -l
    use lib '/PATH/TO/DesignPatterns-Perl/lib/';
    ...
    )->run( 1 .. 10 );
    print `cat out.txt`;
    print `rm out.txt`;
    
  3. or download this
    package HTML::Element;
    use strict;
    ...
        return @_ ? "<$tag$attr_txt>@_</$tag>" : "<$tag$attr_txt />";
    }
    1;
    
  4. or download this
    use HTML::Element '!DEFAULT';
    print '<!DOCTYPE html>',
    ...
            ),
        ),
    );
    
  5. or download this
    #!/usr/bin/env perl 
    
    ...
    
    #print $_,$/ for @flavors;
    print $_,$/ for sort keys %flavors;
    
  6. or download this
    /*------+---------+---------+---------+---------+---------+--------+*\
    |                                                                    |
    ...
    
        return floatValueLeft + floatValueRight;
    }
    
  7. or download this
    use Attribute::Handlers;
    
    ...
    sub foo {
        print Dumper \@_;
    }
    
  8. or download this
    sub new {
      my $class = shift;
    ...
    
      return bless $self, $class;
    }
    
  9. or download this
    #!/usr/bin/perl -w
    
    ...
    
    =cut
    
  10. or download this
    use strict;
    use warnings;
    ...
    
    my @ip = (sort { $#$b <=> $#$a } @bucket)[0];
    print Dumper \@ip;
    
  11. or download this
    package DMML;
    
    ...
    .
    
    1;
    
  12. or download this
    use strict;
    use warnings;
    ...
    );
    
    print Dumper $dmml->{OUTPUT};
    
  13. or download this
    package DVD::director_movie;
    use base qw(DVD::DBI);
    ...
    });
    
    1;
    
  14. or download this
    use DBI;
    use HTML::Template;
    ...
    </tmpl_loop>
    </select>
    </form>
    
  15. or download this
    use Carp;
    
    ...
        $AUTOLOAD =~ /.*::(\w+)/ && exists $self->{$1} and return $self->{
    +$1};
        croak "No such attribute: $1";
    }
    
  16. or download this
    use strict;
    use warnings;
    ...
    }
    
    print Dumper \%hash;
    
  17. or download this
    #!/usr/bin/perl
    
    ...
        </option>
    </select>
    </tmpl_loop>
    
  18. or download this
    #!/usr/bin/perl
    
    ...
        -labels   => \%label,
    );
    
  19. or download this
    #!/usr/bin/perl
    
    ...
        $var = shift;
        print "$var\n";
    }
    
  20. or download this
    #!/usr/bin/perl
    
    ...
        my $self = shift;
        print $self->{var},"\n";
    }
    
  21. or download this
    #!/usr/bin/perl
    
    ...
            print OUT;
        }
    }
    
  22. or download this
    #!/usr/bin/perl
    
    ...
        open IN, $_;
        print OUT while <IN>;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found