[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my recent request for help



fischer writes:
    thanx guys, for all the help.
    
    i got exactly zero messages on a fairly simple problem 7^/

Your original email message arrived an April 12th, along with your other two.
It looks to me like your message got hung up at mout1.freenet.de before ever
reaching the es list.  So, go put your teeth back in and complain to your Internet
Service Provider (you did say you were gnawing on your own teeth...).
    
    now for the good part:  it may happen to you as well, that you input a list
    of integers like this:
    
    i = <=%read
    
    ...and want to use it like this:
    
    echo $list($i)
    
    ...to index a list you would rather want several
    distinguishable values, and it happens like this:
    
    i = <=%read; i = `{echo $i}
    echo $list($i)

Good, I see you found the problem. %read is documented as returning zero
or one value.

A less expensive (subprocess-free) way to do what you want would be

	echo $list(<={%split $^ifs $i})