Search Results

Search: Posts Made By: Corona688
2,410
Posted By Corona688
You know what? When I execute this, it does...
You know what? When I execute this, it does return the ".trim" part. So that's one mystery solved. That trimming is either done before or after perl.

$ perl -e 'print "gene_id\t", join("\t",...
2,410
Posted By Corona688
Yes. Perl allows you to call things without the...
Yes. Perl allows you to call things without the () if you really want to, and they did so here. How it would with them is:

map( {code block}, @ARGV)

So @ARGV is the input array, and {code...
2,410
Posted By Corona688
map is confusing because it's actually a kind of...
map is confusing because it's actually a kind of loop. $1 is the bracketed part of /(.*)\// in this context.

The whole thing means, "For each item in @ARGV[N], do { /(.*)\//; output[N]=$1 }"
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy