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

Re: chop() and chomp()

by SamCG (Hermit)
on Mar 15, 2006 at 18:09 UTC ( #536901=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $/='abc';
    $_='lafbabc';
    ...
    $_='lafabcabc';
    chomp;
    print;  ##prints 'lafabc', only removes ONE $/
    
  2. or download this
    chomp $a, $b; ## this means chomp $a, but leave $b alone!
    chomp ($a, $b); ## this means chomp both
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://536901]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-04-16 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (418 votes), past polls