in reply to Re^5: Hash of Arrays and File Operations
in thread Hash of Arrays and File Operations

You may think you have, but you made a mistake :) Show your code and I'll tell you where
#!/usr/bin/perl -- use strict; use warnings; use Data::Dumper; my @cols = ( 12, 12, 12 ); print Dumper( \@cols ),"\n"; tr/12/91/ for @cols[1.. $#cols]; print Dumper( \@cols ),"\n"; __END__ $VAR1 = [ 12, 12, 12 ]; $VAR1 = [ 12, '91', '91' ];

Replies are listed 'Best First'.
Re^7: Hash of Arrays and File Operations
by snape (Pilgrim) on Jan 29, 2010 at 14:44 UTC

    Thanks a lot. Yeah I works and I was wrong. :) I was trying to do the following:

    @cols = tr/12/01/ for @cols[0 .. $#cols]