Sau http://docs.rinet.ru/Perl5_examples/ch5.htm


On Wed, 19 Jan 2005 11:20:07 +0200, Ionut Radu <[EMAIL PROTECTED]> wrote:
> Marius Pana wrote:
> 
> >Salutare,
> >
> >Unde gresesc de nu imi merge acest script? Imi da eroarea: Malformed 
> >prototype
> >for main::triangle: $width,$height at ./spliter.pl line 8
> >
> >#!/usr/bin/perl
> >
> >sub triangle ($width, $height) {
> >  $area = $width * $height / 2;
> >  return $area;
> >}
> >
> >$area1 = triangle(3,  4);
> >
> >
> Corect e:
> sub triangle {
>   my($width, $height)[EMAIL PROTECTED];
>   $area = $width * $height / 2;
>   return $area;
> }
> 
> >---
> >Detalii despre listele noastre de mail: http://www.lug.ro/
> >
> >
> >
> >
> >
> 
> ---
> Detalii despre listele noastre de mail: http://www.lug.ro/
> 
> 


-- 
Bla bla

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui