Help for this page
Select Code to Download
Select
or
download this
my $foo = split (/,/, $bar);
Select
or
download this
my $foo = ($bar =~ /,/) + 1;
Select
or
download this
my $foo = defined($bar) && length($bar) && (($bar =~ /,/) + 1);