Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Chomping Away (was Ovid Golf Chomps)

by mr.nick (Chaplain)
on Jan 09, 2001 at 08:19 UTC ( #50624=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub mchomp { 
      my @a=@_; 
    ...
      } 
      wantarray ? @a: $a[0]; 
    } 
    
  2. or download this
      ## returns the modified string
      print mchomp $string;
    ...
      %new=mchomp %hash;print values %new;
      ## modifes the hash inplace
      mchomp \%hash;print values %hash;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://50624]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2017-02-21 01:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (305 votes). Check out past polls.