Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: split and @

by dbuckhal (Chaplain)
on Jan 07, 2013 at 19:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1012099]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-26 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found