Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Print from array element to another array element

by choroba (Chancellor)
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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027349]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-03-25 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (311 votes). Check out past polls.