I copy and pasted what you sent, and it works fine for me.  Strange?!!?


Jason

-----Original Message-----
From: Craig Sharp [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 25, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] need qw help

Hi all,





I have the following short script that does not work:





#!/usr/bin/perl





@pvlist = qw{


/dev/dsk/c0t9d0


/dev/dsk/c0t10d0


/dev/dsk/c0t11d0


};





foreach (@pvlist) {





print "$_\n";





}





I am getting the following error:





syntax error in file pvcfg at line 3, next 2 tokens "qw{"





What am I doing wrong?  I need to eventually be able to read each line from
the list and process it with a system call.  The foreach is just a test.





Thanks,





Craig





_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to