Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Clear questions and runnable code
get the best and fastest answer
 
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;


Comment on Re: How to get full path name in windows?
Download Code

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 pondering the Monastery: (7)
As of 2014-04-18 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls