Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl-Sensitive Sunglasses
 
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 taking refuge in the Monastery: (11)
As of 2014-04-23 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls