in reply to trouble modifying add_record subroutine

please tell us what the function filter does. with a short codechange for the checkbox the addition should reduce to merely add the names to @fields. and try to write subroutines in such a way that they do not rely on variables that are elsewhere defined. for example, you could just pass $database as actual argument to add_record, as with the array @fields.
  • Comment on Re: trouble modifying add_record subroutine

Replies are listed 'Best First'.
Re: Re: trouble modifying add_record subroutine
by cal (Beadle) on Sep 10, 2002 at 17:25 UTC
    Thanks filter() just removes any instance of the delimiter in text.
    Your solution sounds simple. Can you please give me an example.
    sub filter{ $temp = $_[0]; $temp =~ s/\:://; # Remove :: delimiter symbols in text. return ($temp); }
      sorry, my thoughts were not _that_ far. in germany i would say "asche auf mein haupt" - again sorry i cannot translate that...