Oeschey, Lars \(I/EK-142, extern\) writes: > ***A T T E N T I O N*********************************************** > This email originates from the Internet and therefore may not > be from the apparent sender. > > If you have any doubts about the origin or content of the email please > contact PC Support on x2288. > *********************************************************************** > > Hi, > > This one I also don't understand: > > print @mapped; > $dialog=$top->Dialog(-title=>"Fertig", -text=>"Die > Laufwerke\n".@mapped."\nwurden erfolgreich > angebunden",-buttons=>[qw/Ok/])->Show; > > > The first print @mapped gives me "X: \\server\path" as it should. In the > Dialog-Box however I get "2" for @mapped. It looks like I get > scalar(@mapped), but why?
That's because the second use evaluates @mapped in a scalar context, which returns the number of entries. You probably want to interpolate the array directly in the string (see doco on variable $") or use join. HTH -- Brian Raven True, it returns "" for false, but "" is an even more interesting number than 0. -- Larry Wall in <[EMAIL PROTECTED]> ----------------------------------------------------------------------- The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of LIFFE Holdings Plc or any of its subsidiary companies. ----------------------------------------------------------------------- _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs