Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How do I cut single characters out of a string

by Not_a_Number (Parson)
on Jan 13, 2012 at 20:36 UTC ( #947825=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $string = 'mystring123456'; # or whatever
    my $getchar = substr $string, length( $string ) / 2, 1, '';
    print "Character is $getchar and string is now $string\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-07-28 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (198 votes), past polls