Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

How to split a string based on length or word boundary

by bcarroll (Pilgrim)
on Dec 21, 2012 at 02:27 UTC ( [id://1009833]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    +------------------+
    |  This is my menu |
    +------------------+
    |                  |
    +------------------+
    
  2. or download this
    menuAdd('A really long string that I want to add to the awesome menu s
    +ystem',20);
    
  3. or download this
    +------------------+
    |  This is my menu |
    ...
    | esome menu syste |
    | m                |
    +------------------+
    
  4. or download this
    +------------------+
    |  This is my menu |
    ...
    | the awesome menu |
    | system           |
    +------------------+
    
  5. or download this
    sub menuAdd{
        my $text = shift;
    ...
            print "******SHOULD NEVER GET HERE******\n";
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1009833]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found