in reply to Re: reading octal values from file
in thread reading octal values from file
Many thanks.
I've now ended up with the following code (and I'm just putting an integer in the option file - i.e. nak:6)
I'm also allowing for a string, such as "OK", but can anyone suggest a more elegant solution than the following?
Tom Melly, tom@tomandlu.co.ukif($opt{ack} =~ /^\d+$/){ print $live_socket chr($opt{ack}); } else{ print $live_socket $opt{ack}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: reading octal values from file
by flounder99 (Friar) on Feb 27, 2003 at 17:27 UTC |