jarwulf has asked for the wisdom of the Perl Monks concerning the following question:
hi, I ran across this line in a perl file Does anyone have an idea of what its doing? It seems to be printing out if some comparisons are met is as far as I figure. Also what is with a variable name like temp_marker_$name? Aren't scalar variables supposed to start with $ and not have them in the middle? What is the purpose of the slashes in the awk command?
system ("awk \'\$1 == \"$label\" && \$3 <= $apex && \$4 >= $apex\{print\}\' $reference >temp_marker_$name") ==0 or die "$0 failed to awk";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl awk
by Loops (Curate) on Apr 04, 2013 at 23:39 UTC | |
|
Re: perl awk
by marto (Cardinal) on Apr 04, 2013 at 23:42 UTC | |
|
Re: perl awk
by hdb (Monsignor) on Apr 05, 2013 at 06:59 UTC | |
by jarwulf (Initiate) on Apr 09, 2013 at 22:36 UTC | |
by educated_foo (Vicar) on Apr 09, 2013 at 23:03 UTC | |
|
Re: perl awk
by Rahul6990 (Beadle) on Apr 05, 2013 at 05:44 UTC |