The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 11-22-2008
adc22 adc22 is offline
Registered User
  
 

Join Date: Nov 2008
Location: Bangalore, India
Posts: 15
The script is -

#!/cygdrive/c/Perl/bin/perl

$var=3 ;
printf $var;

@list=(1,2,3);
printf "@list";
---------------------------
the error i get in cygwin is -

bash: = 3: command not found

syntax error near unexpected token '1, 2, 3'