in reply to Re^4: Editing just one column in a file
in thread Editing just one column in a file

You should've used @ again:

$ echo "Just another perl monker" | perl -w -lane 'print @F[1..3]' anotherperlmonker $ echo "Just another perl monker" | perl -wanE'say@F[1..3]' anotherperlmonker $ echo "Just another perl monker" | perl -w -lane 'print @F[3..3]' monker $ echo "Just another perl monker" | perl -wanE'say@F[3..3]' monker $

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^6: Editing just one column in a file
by vinian (Beadle) on Dec 02, 2011 at 07:40 UTC

    3ks, Tux, I know it's wrong to use $[ $index_begin .. $index_end ], but i want to why range operator produce strange result in different content( scalar or list).
    and also 3ks choroba, i think I got it after seeing what you posted.