thevoid has asked for the wisdom of the Perl Monks concerning the following question:
It will do the conversion, but I get the error -#!/usr/bin/perl #converter.plx use warnings; use strict; print "Please input a hex no. to convert to dec. :"; my $value = <STDIN>; print hex("$value"), "\n";
I don't understand where perl is getting the ' from... cheersIllegal hexadecimal digit ' ' ignored at -path- line 7, <STDIN> line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Illegal hex digit '
by ikegami (Patriarch) on Dec 23, 2006 at 18:58 UTC | |
|
Re: Illegal hex digit '
by rhesa (Vicar) on Dec 23, 2006 at 18:34 UTC | |
|
Re: Illegal hex digit '
by thevoid (Scribe) on Dec 23, 2006 at 19:23 UTC |