bash csh perl ------------------------- ------------------------- ------------------------- a="Hi world" set a="Hi world" $a="Hi World"; echo $a echo $a print a,"0; if [ $a = "yes" ];then if ($a == "yes") then if ( a eq "yes" ) { elif [ ... ]; then else if ( ... ) then } elsif { # notice spelling else else } else { fi endif } read a set a=$< chomp ( $a = <> ); while [ ]; do while ($n > 0) while ( $a > 0 ) { done end } for ( $n = 99; $n > 0; $n-- ) { } foreach n (1 2 3) foreach $n ( 1..3 ) { end } set a=(1 2 3) @a=("a", "b", "c"); Int Str Num Str == == == eq != != != ne < < lt > > gt <= <= le >= >= ge
http://merd.sourceforge.net/pixel/language-study/syntax-across-languages.html http://merd.sourceforge.net/pixel/language-study/scripting-language/
7-apr-01 document created PJT