The only problem is the empty field created by
split at the start of the text, otherwise you'd have been able to assign the result directly to %sections. But you can create a false entry at the beginning and remove it later:
#! /usr/bin/perl
use warnings;
use strict;
my $text = << '__TEXT__';
SECTION 1
This is the first section.
SECTION 2
And this is
the second one.
__TEXT__
my %section = ("", split /(SECTION \d+)/, $text);
delete $section{""};
use Data::Dumper; print Dumper \%section;
Update: Note that hashes use curly brackets, not the square ones (unlike in PHP).
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,