Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Associating filehandles with Perl::Tk widgets?

by YYCseismic (Beadle)
on Jul 16, 2008 at 19:27 UTC ( [id://698124]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found