Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: arrays of arrays

by grep (Monsignor)
on Sep 07, 2007 at 13:48 UTC ( #637651=note: print w/replies, xml ) Need Help??


in reply to arrays of arrays

You want to split the string - so use split.

##UNTESTED use strict; use warnings; my $string = 'the/article book/noun he/pronoun is/verb ill/adjective'; my @array = split( '/', split( /\s+/, $string ) );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://637651]
help
Chatterbox?
[Discipulus]: morning both!
[Corion]: Hi Discipulus!
[Corion]: My pictures from the vacation are now online ;)
[Discipulus]: welcome back Aristotle!

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-02-27 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (378 votes). Check out past polls.