Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to call a function on each item after a split?

by nemesdani (Friar)
on Oct 08, 2012 at 14:46 UTC ( #997829=note: print w/replies, xml ) Need Help??


in reply to How to call a function on each item after a split?

Use an array for the items:
my @items = split(/\|/, $str); foreach my $item(@items){ ...#whatever }


I'm too lazy to be proud of being impatient.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-02-22 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (338 votes). Check out past polls.