http://www.perlmonks.org?node_id=11126661


in reply to Re^2: looking for feedback on my first script
in thread looking for feedback on my first script

Here the code is going to return the return value of sprintf(), presumably "1" which really doesn't mean anything in the context of this code.

From the docs (sprintf):

sprintf FORMAT, LIST
Returns a string formatted by the usual "printf" conventions of the C library function "sprintf".

Please elaborate how sprintf might return "1", other than as sprintf "1", as sprintf "%d", 1 or sprintf "%s",1; and how that might be the case given the incriminated statement.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'