Neil Saunders posts a Perl trick on his blog that he says he always forgets about. The code he posts allows him to create an array that has 20 elements, and he also posts a repetition operator that he's found useful. A commenter on his blog points out there's a way to do that in Ruby, too.

Get the full story

This story is free
for registered users

Registering provides access to this and other free content.

Register now.

Already have an account?
Login Now.

Using DNA to sketch crime victims might not be a great idea, the NYTimes says.

Science has its own problem with sexual harassment. What do we do with the research these abusers produce, Wired asks.

Senate Republicans led by Senator Rand Paul (R-KY) are trying to change how the government funds basic research, reports ScienceInsider.

In Science this week: combining genomics and ecology to better understand the effects of natural selection on evolution, and more.