vietboy505
Technical User
Code:
#!/usr/local/bin/perl5
use Cwd;
print("Current directory: ");
print(cwd());
print("\n");
chdir("/home/users/vietboy/");
print("\n");
print("Current directory 2: ");
print(cwd());
print("\n");
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/local/bin/perl5
use Cwd;
print("Current directory: ");
print(cwd());
print("\n");
chdir("/home/users/vietboy/");
print("\n");
print("Current directory 2: ");
print(cwd());
print("\n");
chdir("/home/users/vietboy/");
#!/usr/local/bin/perl
use Cwd;
print("Current directory: ");
print(cwd());
print("\n");
#chdir("/home/users/vietboy/"); unix side
# \\vietboyserver\home\users\vietboy\
chdir("\\\\vietboyserver\\home\\users\\vietboy\"); #got it map
print("\n");
print("Current directory 2: ");
print(cwd());
print("\n");
Current directory: C:/vietboy/perl/script
Current directory 2: //vietboyserver/home/users/vietboy
$vietboy_path="/home/users/vietboy/";
$other_path="/homer/users/other/";
require "config.file";
$vietboy_path="\\\\vietboyserver\\home\\users\\vietboy\/";
$other_path="\\\\vietboyserver\\home\\users\\other\";
#!/usr/local/bin/perl
$vietboy="\\\\vietboyserver\\home\\users\\vietboy\\";
$other="\\\\vietboyserver\\home\\users\\other\\";
if ($ARGV[0] eq vietboy) {
return chomp($vietboy);
} elsif ($ARGV[0] eq "other") {
return chomp($other);
} else {
print("wrong user $_ ");
}
#!/usr/local/bin/perl
$vietboy = `config.pl vietboy`;
use Cwd;
print("Current directory: " . cwd() . " \n");
chdir($vietboy);
print("Current directory 2: " . cwd() . " \n");