DEV Community

Discussion on: Daily Challenge #1 - String Peeler

Collapse
 
choroba profile image
E. Choroba

Or maybe just

sub peeler { shift =~ s/^.|.$//gr }