#!/usr/bin/perl# your code goes heremy $version=6.1; $version =~ s/.*(\d\.).*/\1/;print $version;
Standard input is empty
6.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!