in reply to Re: Re: complex input file
in thread complex input file

print "\t$_->[0]\t$_->[1]\t$->[2]\n";

Contains a typo, it should be:

print "\t$_->[0]\t$_->[1]\t$_->[2]\n";

$_ is a special perl variable.

Replies are listed 'Best First'.
Re: Re: Re: Re: complex input file
by Anonymous Monk on Feb 18, 2004 at 05:52 UTC
    I fixed it but not sure if we are reading up to three column at the top ,, all I did is changing the DATA to
    EmpNum LOCATION Shift Hours 23 54 1 2 11 65 3 5 23 54 2 7
    then I modify it to
    print "\t$_->[0]\t$_->[1]\t$_->[2]\n";
    but get the same output
    23 54 1 54 2 11 65 3
Re: Re: Re: Re: complex input file
by Anonymous Monk on Feb 18, 2004 at 05:57 UTC
    I know the first one is harder , but cleaner :-)
Re: Re: Re: Re: complex input file
by Anonymous Monk on Feb 18, 2004 at 06:00 UTC
    got it to work now ,, I was hardcoding somthing :-)