About 50x faster still :)
sub b{ my %s; keys %s = shift; undef $s{1}; substr %s, 1+index( %s,'/' ); } [download]
In reply to Re^2: next power of two by BrowserUk in thread next power of two by dk