[Chicago-talk] Strange file creation

Eric Ellington e.ellington at gmail.com
Thu Oct 5 11:27:44 PDT 2006


The whole thing is huge, but here is the whole makefile sub. I am
thinking that @info is being filled with junk sometimes. Sometimes
these files have function names like "Date_Cmp($d ". How can a list be
filled with code from the program?

sub makefile
  {
    my($date, $fn, @info) = @_;
    my $filename = $fn . $date . '.csv';
    print $filename,"\n";

    open(OUT,'>'.$filename) ||
      die "COULD NOT OPEN $filename FOR OUTPUT ";

    print(OUT "\n");
    print(OUT @info);

    close(OUT);
  }

On 10/5/06, Andy Lester <andy at petdance.com> wrote:
>
> On Oct 5, 2006, at 1:16 PM, Eric Ellington wrote:
>
> > my $filename = $fn . $date . '.csv';
> >
> > $fn and $date never get any hashes or hash references assigned to
> > them. Yet every now and then I keep getting these weird files. Has
> > anyone run into this before?
>
> Show us all the code, please.
>
> --
> Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
>
>
>
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>


-- 
Eric Ellington
e.ellington at gmail.com


More information about the Chicago-talk mailing list