Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi,
Yes that's the output what i want it to be, you got me thanks :) My next question is.. is the 2 value on the array stored at $1? What if I want to use the value the "ip:192.168.243.2" how can i stored that at the other string for example $2 or something. Thanks Or something like if the items in the array are matched with the regex (like the code that you made. It will stored at $ipline1 = ip:192.168.243.1 and $ipline2 = ip:192.168.243.2 So that I can choose which one to output or print... Is it possible? Thanks In reply to Re^2: How regex works in array mode?
by astronogun
|
|