Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Print from array element to another array element

by reaper9187 (Scribe)
on Apr 08, 2013 at 05:58 UTC ( #1027431=note: print w/ replies, xml ) Need Help??


in reply to Print from array element to another array element

The easiest way to do it would be to use substr

use strict; use warnings; my $string = "catfood"; $string = substr($string,3,4); print "$string\n";
You could also work on a copy of the original string by assigning the value to a separate string say :
my $new_string = substr($string,3,4);


Comment on Re: Print from array element to another array element
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027431]
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: (7)
As of 2015-07-08 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls