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

TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:

All,

I'm trying to do the following:

foreach my $pwd (split('\\','\foo\foo1\foo2')) { ...
And I'm getting the following error: Trailing \ in regex m/\/ at ../modules/perl/CommonFunctions.pm line 2839.

I'm tried using double quotes and a few other things, I can't seem to get it to work. Anybody have any pointers ?

Thx.