Mr. Shawn H. Corey wrote:
> On Tue, 2006-09-05 at 09:05 -0700, John W. Krahn wrote:
>>I don't understand what you are trying to say.
> 
> I saying this should work:
> 
>   split '+', 'this+is+a+test';
> 
> Yes, I know how to fix it. I'm saying it _should_ work, not that it
> does. If split is followed by a string, the string should be quotemeta
> automatically. If it's followed by a pattern match (see `perldoc -f m`)
> then it should use pattern matching.

perldoc -f split
       split /PATTERN/,EXPR,LIMIT

The first argument to split is a pattern and no matter what you use (with the
exception of ' ') as the first argument split will treat it like a pattern.
The same thing happens with the binding operator:

$string =~ '+';

$string =~ ( chr( 40 ) . pack( 'N*', 0x5065726C ) . chr( 41 ) );




John
-- 
use Perl;
program
fulfillment

-- 
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