in reply to Basic transformations

Yet another one liner for this:
echo '48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21' | perl -lane 'for $ch ( +split /\s/ ) { $st .= chr(hex($ch)); } print $st;'

One world, one people

Replies are listed 'Best First'.
Re^2: Basic transformations
by jwkrahn (Abbot) on Nov 29, 2010 at 22:24 UTC

    You are using the  -a switch which splits the fields on whitespace and puts them in  @F so you could write that as:

    echo '48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21' | perl -lane '$st .= chr + hex for @F; print $st;'