in reply to Re: Associating filehandles with Perl::Tk widgets?
in thread Associating filehandles with Perl::Tk widgets?

Okay, that's awesome! I used the first option, and that takes care of a couple of my problems! It's really nice, because I don't have to worry about newlines, either. The only thing is I get the following warning: Use of uninitialized value in formline at ./sl-brad.pl line 375. Here's my code:

sub swrite { croak "Usage: swrite PICTURE ARGS" unless @_; my $format = shift; $^A = ""; formline( $format, @_ ); return $^A; } #end sub swrite()

I know it's just a warning, but I'm looking for clean code. I assume it's not liking the @_ in the formline statement. Perhaps I should just assign it to another variable?

Replies are listed 'Best First'.
Re^3: Associating filehandles with Perl::Tk widgets?
by YYCseismic (Beadle) on Jul 16, 2008 at 21:01 UTC

    Problem solved. Turned out the data I was sending to swrite was not quite right. Now it is and all is beautiful :) Thanks for your help!