s[][] notation in perl

Viewed 145

I have seen this perl code on the cpan documentation for a module:

$filename =~ s[^.+/][];

What does this mean? I am used to the s// notation for the s function.

2 Answers
Related