Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: foreach increment problem?

by tcf22 (Priest)
on Dec 05, 2003 at 18:52 UTC ( [id://312591]=note: print w/replies, xml ) Need Help??


in reply to foreach increment problem?

$_ doesn't contain all the elements of the array, the problem is that $t->get("1.0", "end") returns the entire contents as a scalar(at least from what you are saying it appears that way), so $fields[0] contains the entire content of the field.

I haven't really used Tk much, but perhaps this would work:
my @field = split(/\n/, $t->get("1.0", "end"));

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-29 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found