perlquestion
ZWcarp
<p>Hello monks,
I was wondering if there is a way to use $` and $' in bash commands... lets say</p>
<code>perl -lane '$F[1]=~s/(chr\w[^_]?)_.*\b/$1/;print $`. "\t". $F[1] ."\t" .$''</code> (which does not work because the apostrophe ends the executable... \' doesn't work either) . <p>Also why is it that \1 doesn't work... is using $1 the correct way to do this? If anyone knows of a reference that documents what special characters translate to bash commands it would be very appreciated. Thank you for your help. </p>