This question was part of a job interview. There were 4 questions and it asked you to answer 3 of them. I answered the other 3 because I did not understand what this was supposed to be. Could some explain WHAT they are asking for?
================================================================ #!/usr/local/bin/perl use strict; # read standard input. print a "hexdump" to standard output # use the +following sample output format: # 00000000: 7F454C46 01010100 00000000 00000000 .ELF............ # 00000010: 02000300 01000000 14860408 34000000 ............4... # 00000020: 1C0E0000 00000000 34002000 06002800 ........4. ...(. # 00000030: 19001600 06000000 34000000 34800408 ........4...4...
I would guess the part I don't understand is the output format. I know how to convert characters from STDIN to hex, there are plenty of places that tell you how to do that. But looking at the output is confusing. I guess I don't know enough about hex dumps...
In reply to What is this question asking? by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |