Ted Schuerzinger <[EMAIL PROTECTED]> wrote:

> @line = split /\,/;

In the documentation for split() it says "By default, empty 
leading fields are preserved, and empty trailing ones are 
deleted."  You want to preserve the empty trailing fields, so 
you need to use the third argument (and to use the third, you 
have to specify the second):

   @line = split /,/, $_, -1;

Also note that commas are not special in regular expressions, 
to there's no need to escape them.

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to