in reply to Creating Excel Spreadsheet from text data file

Your code's no worse than mine (which you can read however you like : )

The only observation I have is that you need not assign null values for your declarations, i.e. you can do my $temp; when you just want to declare the variable. In fact line 6 where you have a list of variables declared and set equal to ' ' it's even a bit confusing at first glance. However TMTOWTDI rules and what your doing does no harm at all.

The only other thing is I've never seen someone put the ++ _brfore_ the variable. cool : ) I like it. I think I'll put it there from now on. It reads better, "increment this variable" as opposed to "this variable is to be incremented".

"sometimes when you make a request for the head you don't
want the big, fat body...don't you go snickering."
                                         -- Nathan Torkington UoP2K a.k.a gnat

Replies are listed 'Best First'.
RE: (jptxs) Re: Creating Excel Spreadsheet from text data file
by Fastolfe (Vicar) on Nov 07, 2000 at 00:18 UTC
    There is a subtle difference between $a++ and ++$a when you use it in an expression (and not like he did in his code):
    $a = 0; print $a++; # 0 print $a; # 1 print ++$a; # 2 print $a; # 2