in reply to Re: Re: Glob on Win32: porting 5.005 to 5.6
in thread Glob on Win32: porting 5.005 to 5.6
Glad you got it sorted. Perl's automagical conversion of / to \ for Win 32 is great. If you want to get Win32 type names for display to users you just do something like this:
my $perl = '/foo/bar/baz'; (my $win = $perl) =~ tr!/!\\!; print "Perl still sees: $perl\n"; print "But we can print: $win\n";
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
/ vs. \ in Win32 (Re: Glob on Win32: porting 5.005 to 5.6)
by tye (Sage) on Sep 04, 2001 at 19:19 UTC | |
by tachyon (Chancellor) on Sep 04, 2001 at 19:37 UTC | |
by tye (Sage) on Sep 04, 2001 at 19:46 UTC | |
by tachyon (Chancellor) on Sep 04, 2001 at 19:52 UTC | |
by tye (Sage) on Sep 04, 2001 at 20:20 UTC | |
| |
by perchance (Monk) on Sep 05, 2001 at 10:19 UTC |