fork(1) download
  1. #!/usr/bin/perl
  2.  
  3. use Data::Dumper qw(Dumper);
  4.  
  5. $text = "Кот собака кит дельфин";
  6. @t = split / /, $text;
  7. print Dumper \@t;
  8.  
Success #stdin #stdout 0.01s 21368KB
stdin
Standard input is empty
stdout
$VAR1 = [
          'Кот',
          'собака',
          'кит',
          'дельфин'
        ];