I wonder why the use of sprintf? I would have done it this way:
foreach (@list) { $_=":$_"; }

Is there something that the sprintf does that I'm missing, or is this
just another way to skin the same cat? Perhaps in other circumstances
sprintf is superior?

    Just curious,
        Pete

Etienne Marcotte wrote:
for (1..@list) { @list[$_] = sprintf(":%d",@list[$_]; }

David Wagner wrote: (I edited to compact it)
foreach( @aaa ) { my $MyId = sprintf "\":%d\"", $_; }


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to