Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Nested Loop Problems

by cuautemoc (Initiate)
on May 02, 2012 at 22:15 UTC ( #968565=note: print w/ replies, xml ) Need Help??

in reply to Re: Nested Loop Problems
in thread Nested Loop Problems

Awesome, that worked. I'm still confused as to context; was I treating it as a scalar? I looked through help file for split, but I guess I don't understand the difference.

Anyway, I've got it working. Thanks for the advice!

Comment on Re^2: Nested Loop Problems
Replies are listed 'Best First'.
Re^3: Nested Loop Problems
by brx (Pilgrim) on May 03, 2012 at 07:44 UTC

    About variables and context, see pelrdata

    $list=split ...: 'split' in scalar context because '$list' is a scalar value (split: In scalar context, returns the number of fields found.)

    @list=split ...: 'split' in list context and returns a list because '@list' expects a list value.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-02-14 06:03 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (457 votes), past polls