Lightning flashed, thunder crashed and Jorge Goncalvez <[EMAIL PROTECTED]
l.fr> whispered:
| Hi, I have this code:
| 
| &makelabels($language_EA,$ethernet_address);
| &makelabels($language_IP,$IP_address);
| &makelabels($language_CN,$client_name);
| &makelabels($language_BF,$boot_file);
| &makelabels($language_FP,$install_file_path);
| 
| sub makelabels
| {     

  my($x,$y) = @_;

|       
|       $myframe->Label(-textvariable=>\$x)->pack(-anchor=>'w');
|       my $label1=$myframe->Label(-relief=>'sunken',
|                                     -textvariable=>\$y,
|                               -width=>$lw,
|                               -anchor=>'w',
|                               -bg=>'white')->pack(-anchor=>'w');
|       
| }

The parameters are passed in the special array @_.  You need to assign them
to your variables ($x, $y) using the line I placed above.

-spp
--
Stephen P Potter        Columbus, Ohio, USA              [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point."        -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training  http://www.unixlabs.net/~spp/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to