in reply to Re^2: use of useless void in context
in thread use of useless void in context

split {</syscode>}i, $syscode, 2;

According to the documentation, "If "/" is the delimiter then the initial m is optional" so once you choose a different delimiter I think you need the m. Therefore the code should be

split m{</syscode>}i, $syscode, 2;

I hope this is of interest.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^4: use of useless void in context
by jwkrahn (Abbot) on Feb 07, 2009 at 20:30 UTC

    Since split always treats its first argument as a regular expression anyway you could also use a string:

    split '(?i:</syscode>)', $syscode, 2;