D
doni
Hi,
I want to write a program that does check the appropriate system path
for perl in FreeBSD and Linux.
The path where I have it in FreeBSD is
#! /usr/local/bin/perl
and the path where it is in Linux is
#! /usr/bin/perl
I wanted the program to check for the uname of the system and choose
the appropriate path. Can anyone tell me how can I have my program
check this.
This is how I wrote the program but it doesnt work.
#! /usr/local/bin/perl
use strict;
use warnings;
if (system("uname") eq "Linux") {
#! /usr/bin/perl
}
< rest of the code >
Thanks,
doni
I want to write a program that does check the appropriate system path
for perl in FreeBSD and Linux.
The path where I have it in FreeBSD is
#! /usr/local/bin/perl
and the path where it is in Linux is
#! /usr/bin/perl
I wanted the program to check for the uname of the system and choose
the appropriate path. Can anyone tell me how can I have my program
check this.
This is how I wrote the program but it doesnt work.
#! /usr/local/bin/perl
use strict;
use warnings;
if (system("uname") eq "Linux") {
#! /usr/bin/perl
}
< rest of the code >
Thanks,
doni