[Alug] Perl split function...

Simon simon at sparksy.co.uk
Mon Sep 23 17:51:01 BST 2002


Thanks for your help guys, working now...

On Monday 23 September 2002 5:13 pm, Mat B wrote:
> Douglas is correct but you also might find it useful to use a foreach loop
> to
> get the octets displayed.  I'm not 100% sure that while loop will work.
>
> Something like:
>
> foreach my $octet (@octets)
> {
>         print qq(Octet = $octet\n);
> }
>
> instead of
>
> > while (@octets)
> > 	{
> > 	print qq(Octet = $_);
> > 	}
>
> Cheers,
>
> Mat





More information about the main mailing list