in reply to Re: Is it possible to split a hash key?
in thread Is it possible to split a hash key?
The first parameter to split is always a regexp even if you write a string (unless that string happens to be a single space).
A single space also results in (the equivalent of) a regex in split. The difference is that the regex is not the string itself (/ /) but /\s+/. Specifying ' ' is an alternaive way of invoking the default which is to split on white space.
Anno
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is it possible to split a hash key?
by almut (Canon) on Jul 29, 2007 at 12:39 UTC | |
by Anno (Deacon) on Jul 29, 2007 at 13:23 UTC | |
by diotalevi (Canon) on Jul 29, 2007 at 17:31 UTC |