in reply to Re: First steps in OO-Perl , suggestions please!
in thread First steps in OO-Perl , suggestions please!

  • Well to be honest I didn't think much about using ref($proto) || $proto, I did because I've read Planning for the Future - Better constructors in perltoot.
  • Yes I'll do a POD once it's really finished
  • About the 80-char-standard: Should I just break the lines?
  • All other points: Agreed. :)
  • thanks!

    giant

    Replies are listed 'Best First'.
    Re: Re: Re: First steps in OO-Perl , suggestions please!
    by broquaint (Abbot) on Jul 25, 2002 at 13:48 UTC
      About the 80-char-standard: Should I just break the lines?
      Break the lines where it's logical. For example when you assign the new Net::FTP object to $self->{ftp} you could restructure it like so
      $self->{ftp} = Net::FTP->new( $self->{'host'}, Port => $self->{'port'}, Timeout => $self->{'timeout'}, Debug => $self->{'debug'} ); unless($self->{ftp}) { ... }
      Play around with it and see what looks best to you. You might even notice some improvements that could be made to your code along the way.
      HTH

      _________
      broquaint