Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 browsing the Monastery: (8)
As of 2014-09-17 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (91 votes), past polls