Ken Foskey schreef:

> split( /\s+/, $vob_list )

There is a difference between that and

  split( ' ', $vob_list )

The latter skips whitespace at the start.

perl -e '
  $_ = qq{  abc def\tghi\njkl} ;
  @_ = split /\s+/ ;
  $" = qq{>\n<} ;
  print [EMAIL PROTECTED]
'
[>
<abc>
<def>
<ghi>
<jkl]


perl -e '
  $_ = qq{  abc def\tghi\njkl} ;
  @_ = split q{ } ;
  $" = qq{>\n<} ;
  print [EMAIL PROTECTED]
'
[abc>
<def>
<ghi>
<jkl]

-- 
Affijn, Ruud

"Gewoon is een tijger."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to