On 12-03-07 06:40 PM, Chris Stinemetz wrote:
On Wed, Mar 7, 2012 at 5:14 PM, shanmugam m<bluepulse5...@gmail.com>  wrote:
    my @column1 = split("/\\/",$line);
I'm not sure what you are trying to do here. Split will split on white
space by default

I think he's trying to split on a backslash. Try:

    my @column1 = split( /\\/, $line );


    print MYOUTFILE $column1[5] ,"\t" ;
you are trying to print the fifth element in the array @column1

That would be the sixth element. Array numbering starts at zero, so index 5 is the sixth element.


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

It's Mutual Aid, not fierce competition, that's the dominate
force of evolution.  Of course, anyone who has worked in
open source already knows this.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to