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}; }
In reply to Re: Re: reading octal values from file
by Melly
in thread reading octal values from file
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |