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

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

i'm new to PERL on windows, always have been on a mac, so i'm having some issues. the code below works, but why do i have to escape all the slashes? is there a way around this?
#!/usr/bin/env perl -w my $wilsonstiff = "Z:\/Partners\/Wilsons\/2push_test"; chdir( $wilsonstiff ) or warn "Cant chanage to Z:/Partners/Wilsons/2pu +sh_test $!"; (@upload_wilsonstiff) = glob "*"; my $upload_count_wilsonstiff = @upload_wilsonstiff; print "$upload_count_wilsonstiff files found\n";