pat_mc has asked for the wisdom of the Perl Monks concerning the following question:
This subroutine consistently returns a blank string while the bash command itself has a non-zero length return value when executed from the shell. Could it be the string $lemma does not even get interpolated into the expression?sub get_valence { my $lemma = shift @_; my $lexical_entry = `egrep -m 1 "^$lemma:" /home/lexicon`; return $lexical_entry; }
|
|---|