Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

eric256's scratchpad

by eric256 (Parson)
on Jun 01, 2004 at 15:33 UTC ( #358133=scratchpad: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub form_create : Local {
      my ($self, $c) = @_;
    ...
            $c->stash->{template} = 'books/list.tt2';
        }
    
  2. or download this
        [%- # optional, but both the beginning and the ending TT tags supp
    +ort chomping. -%]
    
    ...
        [% END -%]
        </table>
    ~
    
  3. or download this
        [% META title = 'Manual Form Book Create' -%]
    
    ...
        <pre>
        Dump of the 'authors' variable:
        </pre>
    
  4. or download this
    use strict;
    use warnings;
    ...
            return 'number' if /^\d+$/;
            return 'string';
    }
    
  5. or download this
    create or replace type body string_agg_type
       is
    ...
    create or replace FUNCTION stragg(input varchar2 )
        RETURN clob
        PARALLEL_ENABLE AGGREGATE USING string_agg_type;
    
  6. or download this
    my $p = $cgi->param("pl_copyright") || 'no';
    my $p_values = {
          'yes' => '--yes',
          'no'  => '--no' };
    my $p_cmd =  exists $p_values->{$p} ? $p_values->{$p} : '--no';
    
  7. or download this
    \documentclass[letterpaper,10pt,oneside]{book}
    \pagestyle{headings}
    ...
    \end{tabular}
    
    \end{document}
    
  8. or download this
    select topic.id, (
    SELECT id reply_id FROM (
    ...
      WHERE r = 1
    ) from nf_posts topic
    where parent_id is null
    
  9. or download this
    #!/usr/bin/perl
    use strict;
    ...
        $sock->send($data);
        sleep (rand 5);
    }
    
  10. or download this
    use strict;
    use warnings;
    ...
    
        print "Saw: \n$mess\n";
    }
    

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: (4)
As of 2023-12-01 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (5 votes). Check out past polls.

    Notices?