I need to check of the profile file exists , so i wrote this for the test purpose
#!/usr/bin/perl
use strict;
use warnings;
my $prfle=`~/sqllib/db2profile`;
print $prfle;
But its printing nothing ...
the script checks for the profile file and if not found it will ask the user until the valid path is provided and executes that profile file , I implemented this in shell script successfully but coming across trouble in perl