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

Re: Separating array contents

by tobias_hofer (Friar)
on Jun 07, 2013 at 07:53 UTC ( #1037612=note: print w/ replies, xml ) Need Help??


in reply to Separating array contents

Hi,

I do these things like this using split function:

#First you should join the array first, like shown by space_monk above +. #Then you got something like that.. my $string = "! my name ! is !Achint ! I need ! help"; #Here the '!' is the delimiter. my @Array = split(/!/,$string); print @Array;
Hope this helps! ;-) I know this is now quite redundant - sorry for that!


Comment on Re: Separating array contents
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2015-07-28 19:19 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 (258 votes), past polls