#!/usr/bin/perl use strict; my $string = qq{jfjsa as,.n d"fdsafjl"jop'fdsjklf fds'457"fjdsklaoir"j +kl45;fs ier987543" fsdjkal"}; my @arrays = split( "\"|\'", $string ); print join "\n", @arrays;
In reply to Re: Split into array in a somewhat unconventional manner
by bichonfrise74
in thread Split into array in a somewhat unconventional manner
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |