Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: chopping lots of characters

by Abigail-II (Bishop)
on Jun 24, 2004 at 11:45 UTC ( #369294=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $i = 4;
    chop $string while $i -- && length $string;
    
  2. or download this
    my $i = 4;
    1 while $i -- && defined chop $string;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369294]
help
Chatterbox?
erix imagines trump-nominees poring over the wikipedia-page of their ministery's subject

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2017-01-20 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.