Thanks Mat, After saying there wasn't line feeds, ther was!! I forgot to mention that I'm displaying using HTML so the "\n" isn't used. I changed the s/!/\n/; to s/\n/<br>/; and it works a treat... Sorry for not giving the correct info but the pointer in the right direction was enough.
Thanks again..
Simon
On Friday 21 June 2002 11:30 am, Mat B wrote:
I want to change multiple occurances of a char (! to \n) in a large array,
can someone point
me in the right direction please....
I'm using Net:Telnet:Cisco and it loads the config into an array, I want
to show the running config but the
line feeds arn't there, just the "!" indicating a new line..
for(@array) { s/!/\n/; }
Cheers,
Mat
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!