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

Re: Re: Are prototypes evil?

by demerphq (Chancellor)
on Sep 03, 2002 at 18:13 UTC ( #194837=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo{ print join "-",@_};
    my @array=qw(a b c d e);
    foo(scalar @array,"Bar");
    
  2. or download this
    sub my_scalar {
      my $count=0;
      $count++ foreach @_;
      return $count;
    }
    
  3. or download this
    sub listy(\@){
        print join("*",@{$_[0]}),"\n";
    }
    listy @array;
    
  4. or download this
    sub assert ($;$) {
        unless($_[0]) {
    ...
        }
        return undef;
    }
    
  5. or download this
    assert @array,"Array must have elements within";
    
  6. or download this
    assert scalar @array,"...";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194837]
help
Chatterbox?
[shmem]: long white hair, long beard the same, then he proceeded to get off the bike
[shmem]: saying "biking itself isn't that much, but getting up and down - hell!"
[shmem]: up and down: on and off the bike, of course

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-06-25 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (570 votes). Check out past polls.