Sorry the 'tutorial' I read said that 'qw' was
pointless, I can see they they just plain suck and I'm
deleting the bookmark as we speak. This tutorial
completely screwed me over and made me confused
(personally I now hate programming and Perl). And I
didn't mean to just send the email to you...Yahoo is a
pain in the ass and I'm tired, I've sent many emails
and I'm forced to enter the list's email address in
the CC everytime. Again Yahoo is a POS. Since I have
transferred to Linux I already miss 2 great software's
from Microsoft...IE and Outlook. I'm sorry, but for
java, Netscape just plain sucks and no email client
(that I know of) will come close to Outlook's
"organize" feature. You also have to understand that
I'm a newbie at programming, you have years of
experience with it, so don't expect me to understand
everything you say. Again thanks for the help and if
you know of a GOOD tutorial out there email the list,
I will look into purchasing 'Learning Perl.'
> Yes, it will work, and yes, you can add another set
> of brackets.
> 
>     if ($camera == 1) {
>         foreach my $c (qw(@ 0 1)) {
>             print(DEV $c);
>             sleep(1);
>         }
> 
>     } elsif ($camera == 2) {
>         foreach my $c (qw(@ 0 2)) {
>             print(DEV $c);
>             sleep(1);
>         }
>     }
> 
> The problem with your original code is you're using
> commas in between print
> statements; adding bracketing between commas will
> indeed cause problems.  As
> I mentioned in my previous email, if you're using
> this foreach more than
> once in your code (which you obviously are) you
> should put it in a
> subroutine.
> 
> These are Perl basics, and you should have picked
> them up from some decent
> learning material.  Consider purchasing Learning
> Perl or Beginning Perl, or
> at the very least read the documentation available
> at perl.com.
> 
> Also, please post further questions to the
> perl-beginners list.  I'm not
> trying to be rude, but I'm not your personal tutor. 
> Both you and the list
> will benefit from shared answers.
> 
> 
> Michael
> --
> Administrator                      www.shoebox.net
> Programmer, System Administrator  
> www.gallanttech.com
> --


=====
- Paul Burkett

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to