I have a string which looks like
and I want to count the number of bits. What I have so far is
which works fine but do I really need to declare the array? I've tried constructs such as
and a number of variants but I can't seem to get it. Any pointers please?
Thanks
On the internet no one knows you're a dog
Columb Healy
Code:
bit1,bit2,bit3,bit4
Code:
my @bits = split /,/;
print $#bits, "\n";
Code:
print $#(split /,/)
Thanks
On the internet no one knows you're a dog
Columb Healy