Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-07-23 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls