I always thought they were interchangeable till today.
which prints
0
744
744
I found very little explaining || vs or, I can't get to perldoc or cpan right now.. and only found a small tidbit about || binding more tightly on google, but didn't really have a good explanation.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
Code:
my @trapd_file_list = qx{$remsh $trapd_log_server $ls $trapd_log_path/$trapd_server} || &senderror("$remsh $trapd_log_server $ls $trapd_log_path/$trapd_server : $!", 'exit');
print "$#trapd_file_list\n";
my @trapd_file_list = qx{$remsh $trapd_log_server $ls $trapd_log_path/$trapd_server} or &senderror("$remsh $trapd_log_server $ls $trapd_log_path/$trapd_server : $!", 'exit');
print "$#trapd_file_list\n";
my @trapd_file_list = qx{$remsh $trapd_log_server $ls $trapd_log_path/$trapd_server};
print "$#trapd_file_list\n";
0
744
744
I found very little explaining || vs or, I can't get to perldoc or cpan right now.. and only found a small tidbit about || binding more tightly on google, but didn't really have a good explanation.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;