in reply to Perl's caller builtin

while caller appears to use the Unix-standard forward slash.

Not quite.

>perl ./a.pl ./a.pl running in Perl v5.14.0 Caller[1] is: ./a.pl >perl .\a.pl .\a.pl running in Perl v5.14.0 Caller[1] is: .\a.pl

I'd appreciate receiving the MSWin32 output from following code.

How can the path used to open the file not be a MSWin32 path? Windows accepts both "\" and "/" as directory separators.

Replies are listed 'Best First'.
Re^2: Perl's caller builtin
by geoffleach (Scribe) on Jul 30, 2011 at 22:56 UTC
    And so, my knowledge of Windows is vastly expanded :-). Thanks.