Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Locating A Users Current Remote Directory

by ikegami (Patriarch)
on Apr 12, 2007 at 17:00 UTC ( [id://609707]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $file_name = @ARGV ? shift(@ARGV) : 'answerfile';
    open(my $fh, '<', $file_name)
       or die("Unable to open answer file \"$file_name\": $!\n");
    
  2. or download this
    use File::Spec::Functions qw( rel2abs );
    
    my $full_name = rel2abs($file_name);
    
  3. or download this
    use File::Basename qw( dirname );
    
    my $dir_name = dirname($full_name);
    
  4. or download this
    E:\some\path>type ..\bin\routine.pl
    use strict;
    ...
    Dir Name:  E:\some\otherpath
    Contents:
    Answer file in \some\otherpath
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-19 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found