Change the third line to do the split:use strict; my $a='hello|world'; my $c='|'; my @letras = split /$c/,$a; for (@letras) { print "[$_]"; }
Hope this helpsmy $c='\|';
$_=$,=q,\,@4O,,s,^$,$\,,s,s,^,b9,s, $_^=q,$\^-]!,,print
In reply to Re: split $c
by hopes
in thread split $c
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |