Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now why is that, as far as I knew any character within ' ' will get interpreted literally. So whats up with that?my $string = user|name|password; # doesnt work #my @field = split ('|', $string); #works my @field = split ('\|', $string);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: '|' need to be escaped?
by ikegami (Patriarch) on Sep 11, 2011 at 18:32 UTC | |
by Marshall (Canon) on Sep 12, 2011 at 03:41 UTC | |
by ikegami (Patriarch) on Sep 12, 2011 at 04:07 UTC | |
by Anonymous Monk on Sep 11, 2011 at 18:55 UTC |