arrays.pl

A UNIX Command $cat arrays.pl # Simple array constructs. @fred = (“How”, “are”, “you”, “today?”); print “\@fred contains (@fred).\n”; $mike = $fred[1]; print “$mike $fred[3]\n”; # The array name in a scalar context gives the size. $fredsize = @fred; print ‘@fred has ‘, “$fredsize elements.\n”; # The $#name gives the max subscript (size less one). …

print with delay 0.1

/* Jeffrin Jose Licensed GPL v3 Copyright 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include #include int main() { int seconds; int i=0; char array[20]=”Happy Friendship Day”; /* printf(“n Happy Friendship Day n”); */ for(i=0;i<20;i++) { printf("%c",array[i]); /* for(seconds=0;seconds<100000000;seconds++);*/ /* system("sleep 1s");*/ sleep(1); /* Delay not Properly Implemented . FIXME. */ } printf("n"); return 0; }