Re: HoA building
- From: "DJ Stunks" <DJStunks@xxxxxxxxx>
- Date: 27 Dec 2006 18:59:17 -0800
"M. Lewis" wrote:
John W. Krahn wrote:
M. Lewis wrote:
my ($prod, $flavor) = split /\s/, $ln, 2;
You probably should use ' ' instead of /\s/ as the first argument to split:
my ($prod, $flavor) = split ' ', $ln, 2;
Ok, but why? Are they not the same?
similar, but not the same.
perldoc -f split (>>) said, in part,
>> A "split" on "/\s+/" is like a "split(' ')"
>> except that any leading whitespace
>> produces a null first field.
-jp
.
- References:
- HoA building
- From: "M. Lewis"
- Re: HoA building
- From: John W. Krahn
- Re: HoA building
- From: "M. Lewis"
- HoA building
- Prev by Date: RE: 1, random; 2, unicode
- Next by Date: Re: Remove an element from middle of array
- Previous by thread: Re: HoA building
- Next by thread: Re: HoA building
- Index(es):