Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: split and @

by dbuckhal (Hermit)
on Jan 07, 2013 at 19:34 UTC ( #1012099=note: print w/replies, xml ) Need Help??


in reply to split and @

If you were trying to view the split content as a string with this line:

print "$input[$len-1]"; # splits properly into 4

You can just change it to simply:

print "@input";

The quotes around the array will give you a quick idea of how your splitting worked out.

---output---

ab cd efghi jkl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2019-11-13 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (68 votes). Check out past polls.

    Notices?