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

Re: Print from array element to another array element

by choroba (Abbot)
on Apr 07, 2013 at 10:02 UTC ( #1027349=note: print w/ replies, xml ) Need Help??


in reply to Print from array element to another array element

The problem is that the range operator .. is not recognised in double quotes. This should work, though:

print @array[3 .. $end], "\n";

It might be faster and easier, though, not to split the string at all and work with substr and length.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


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://1027349]
help
Chatterbox?
and the web crawler heard nothing...

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

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls