Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: How to get full path name in windows?

by Khen1950fx (Canon)
on Dec 09, 2012 at 22:48 UTC ( #1008010=note: print w/replies, xml ) Need Help??

in reply to How to get full path name in windows?

Using CountZero's script with a regexp:
#!/usr/bin/perl -l use strict; use warnings; my $dirname = shift @ARGV; opendir( DIR, $dirname ); my(@files) = readdir(DIR); print "File path: "; foreach my $file (@files) { my $file_path = "$dirname/$file"; $file_path =~ s/\\|\//\\\\/g; print $file_path; } closedir DIR;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008010]
[1nickt]: choroba Updated the PR, using Config instead of exposing the hackery. Using cpanfile-dump does not work to test, as shown in the earlier PR comment, even when using a binary built for a particular Perlbrew perl, the output seems to be
[1nickt]: ... from the system perl binary. Using cpanm --installdeps . does use the expected perl and tus the check acts correctly.
[choroba]: Nice, thanks. I'll look into it later, about to leave ATM.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-10-18 16:07 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (249 votes). Check out past polls.