Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2016-08-30 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (420 votes). Check out past polls.