http://www.perlmonks.org?node_id=191349


in reply to (tye)Re: [substr] anomaly or mine?
in thread [substr] anomaly or mine?

Using that logic, then, you would expect:

print substr($s,0,4)='',$s;

..to print:

|k brown fox jumps over the lazy dog

..as it would return what it was just set to.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Replies are listed 'Best First'.
Re: Re: (tye)Re: [substr] anomaly or mine?
by BrowserUk (Patriarch) on Aug 20, 2002 at 00:16 UTC

    Thankyou.


    What's this about a "crooked mitre"? I'm good at woodwork!