Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Corion's scratchpad

by Corion (Patriarch)
on Jun 01, 2004 at 14:33 UTC ( [id://358095]=scratchpad: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    create table test (
      id integer not null,
    ...
      ) test2
    where pos > 1
    
  2. or download this
    alter table add column foo;
    create table foo (
    ...
        end as bar
    from foo
    left join foo_eav foo_bar on foo.id = foo_eav.recno and foo_eav.name =
    + 'bar'
    
  3. or download this
    package App::RemoteDownload::Queue;
    use strict;
    ...
    };
    
    1;
    
  4. or download this
    #! perl -slw
    use strict;
    ...
    sleep 1;
    take();
    sleep 12;
    
  5. or download this
    package DateTime::Range;
    use strict;
    ...
    };
    
    1;
    
  6. or download this
    package Interfaces::ExcelBinary;
    use strict;
    ...
        mem_usage();
        ReadXLS(Interfaces::ExcelBinary::, $file);
    };
    
  7. or download this
    Spreadsheet::ParseExcel 0.58 at q:\tmp.pl line 5.
    medium.xls 47344673 bytes
    ...
    Done parsing
    perl.exe                    2940 Console                 0    331.140 
    +K
    54175 records in [34 seconds], [0 records/s]
    
  8. or download this
    my @data = $cv->recv()
    
  9. or download this
    my @result = $plugin->execute('1+1'); # sends data over to Firefox, an
    +d returns the response
    
  10. or download this
    package My::Plugin::AnyEvent;
    
    ...
        # synchronously execute the command
        $self->execute_async($command)->recv
    };
    
  11. or download this
    package Archive::Zip::MemberRead::FH;
    use strict;
    ...
    
    =cut
    
  12. or download this
    #!perl -w
    use strict;
    ...
        -X        include "XSUB.h" (and undefine PERL_CORE)
    
    =cut
    
  13. or download this
    #!perl -w
    
    ...
    while (<>) {
        print "$_\n"
    };
    
  14. or download this
        for each module that fails its regression tests on $current
          did it fail identically on $previous?
    ...
              yes - goto "regression"
              no - note it in perldelta as a significant bugfix
              (also, try to inform the module's author)
    
  15. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            $last_update = $now;
        };
    };
    
  16. or download this
    use strict;
    use threads;
    ...
        printf "%d %d\n", threads->tid, $_;
        $_
    } (1..10);
    
  17. or download this
    @echo off
    set base=%~dp0
    path %BASE%\perl\bin;%BASE%\c\bin;%PATH%
    set CCACHE_DIR=C:\temp\ccache
    set CCACHE_LOGFILE=%CCACHE_DIR%\ccache.log
    
  18. or download this
    #!perl -w
    use strict;
    ...
        select RemotePath,ConnectionState
        from Win32_NetworkConnection
    
  19. or download this
       sub GimmeStdErr(@){  # ... bangles, tangles and spaghetti!
             local *R, *W;
    ...
                 exec @_
             }
       };
    
  20. or download this
    =head2 C<< flatten LISTNAME CHILDLIST $var >>
    
    ...
        $items
    };
    
  21. or download this
    Q:\>perl -e "my%l;BEGIN{unshift@INC,sub{my($s,$m)=@_;return if $l{$m};
    +local $l{$
    m}=$m;warn localtime().qq[ $m loading\n];require $m;warn localtime().q
    +q[ $m done
    .\n];}}" -e "use strict; use warnings;use LWP::UserAgent;"
    
  22. or download this
    package Devel::Timings;
    # or maybe B::Timings, so you can load it with -MO=Timings...
    ...
            warn localtime().qq[ $module done.\n];
        }
    }
    
  23. or download this
    use Test::More tests => 4;
    use Data::Dumper;
    ...
    fallback
    #!/bin/sh
    
  24. or download this
    #!/usr/bin/perl -w
    package main;
    ...
        print "\n";
        $conf->SetDNSServerSearchOrder(['192.168.1.102', '127.0.0.1']);
    }
    
  25. or download this
        SELECT COUNT(*) 
        FROM mx_forums
        WHERE id=? OR category = ? 
        -- $q->param('forum'), $q->param('category')
    
  26. or download this
        SELECT COUNT(*) 
        FROM mx_forums
    ...
          OR ((1 = ?) AND (category = ?))
        -- defined $q->param('forum'), $q->param('forum')
        -- defined $q->param('category'), $q->param('category')
    
  27. or download this
    my $sql = q{ ... };
    if ( $dbh->selectrow_array(
    ...
           $q->param('category')
        ) >= 1 
         ) { ... }
    
  28. or download this
    use strict;
    use lib '.';
    ...
                              having  => { col_count => [ -and => { '>' =>
    + 0 }, { '<' => $total_count }]},);
      print $sql,"\n";
    }
    
  29. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    }
    
    print "Done.";
    

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 musing on the Monastery: (2)
As of 2024-04-26 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found