in reply to Looping through a split() and more...
Not really. Could you be more specific?
Assuming you want to break these elements into their parts, how about the following? The real question is how you want to store them. I chose an array of arrays
foreach $sess(@sessions){ foreach(split(/\n/,$sess)){ if(/^.\d+/){ #ignore the formatting lines push @connections, [split]; #pushing a reference to the resulti +ng array onto the array } } }
would have the user of the second connection, for example. See perlref$connections[1][1]
|
|---|