in reply to The text preceding <STDIN> is not printed
Thank you very much for the help!#!/usr/bin/perl -w use strict; use warnings; print "Please, enter the hex number : \n"; S|=1; my $hex = <STDIN>; print "$hex", "\n"; chomp ($hex); print "You've entered hex: ", $hex, "\n"; print "The decimal equivalent is ", hex "$hex", "\n";
|
---|