Jim Hansen wrote:
> That's what I try doing, once I clean up my syntax
> errors, I get this as my output, except $server would
> be = 5. Strange. The only thing I did not add was qw.
>
> my $a = 0;
> foreach my $server (@Servers) {
> $a++;
> print "server=$server\n";
> }
> print "a=$a\n";
Always post a complete snippet (with use strict and use warnings as
the first two lines). If you remove the qw, then you'll have to
add commas.
You need to state in English what you are trying to accomplish.
Are you just trying to put some pseudo-code into a var and display
it or do you actually want to then execute that code and do something
possibly with the output or what ?
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs