in reply to about split
I think the confusion here is that "split" is not the same as "split / /". Rather, "split" is the same as "split /\s+/".
Also, if you "split $_", Perl thinks you're using $_ as your pattern. You can't leave out the pattern and still pass a string to split. If you specify a string, you also have to specify a pattern.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: about split
by BrowserUk (Patriarch) on Mar 12, 2008 at 16:22 UTC | |
|
Re^2: about split
by Not_a_Number (Prior) on Mar 12, 2008 at 16:21 UTC |