Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Gratuitous use of Perl Prototypes

by grantm (Parson)
on Nov 08, 2004 at 22:39 UTC ( #406231=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub PUSH {
        my(@array, @new_items) = @_;
    ...
    
      my @target = ('RED', 'GREEN');
      PUSH(@target, 'blue');
    
  2. or download this
      sub PUSH {
        my($array, @new_items) = @_;
    ...
    
      my @target = ('RED', 'GREEN');
      PUSH(\@target, 'blue');
    
  3. or download this
      sub PUSH (\@@) {
        my($array, @new_items) = @_;
    ...
    
      my @target = ('RED', 'GREEN');
      PUSH @target, 'blue';
    
  4. or download this
         sub border_style ($$$) {
    
  5. or download this
         sub border_style {
           my($width, $style, $colour) = @_;
    
  6. or download this
        sub border ($;$$) {
          my($width, $style, $colour) = @_;
    ...
    
          return "border: $width $style $colour;";
        }
    
  7. or download this
        print border('1px'), "\n";
    
  8. or download this
        my @args;
        push @args, $selected ? '5px' : '1px';
    ...
        push @args, 'red' if $selected;
    
        print border(@args), "\n";
    
  9. or download this
        "border: 5px dashed red;"
    
  10. or download this
        "border: 3 solid black;"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://406231]
Approved by Arunbear
Front-paged by hsmyers
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-09-01 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (15 votes), past polls