Regards#!/usr/bin/perl use strict; use warnings; my $string = 'www.perlmonks.org.split.reduce.code.check'; my @array = (); @array = split /\./, $string; @array = reverse @array; print "Reversed data ==> @array\n";
In reply to split string using optimized code or perl one liner by madtoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |