Monday 27 January 2014

Cat command in Linux



$ cat program.pl program2.pl
#!/usr/bin/perl
 if( 2 ge 3) {
     print "greater\n";
} else {
     print "lesser\n";
 }

#!/usr/bin/perl
@arr = qw(1 2 3);
$ref = \@arr;
print ref $ref;

Example 2:

#!/usr/bin/perl
 if( 2 ge 3) {
     print "greater\n";
} else {
     print "lesser\n";
 }

#!/usr/bin/perl
@arr = qw(1 2 3);
$ref = \@arr;
print ref $ref;


Example 3:

Step 1: Start
Step 2: Declare variables a,b and c.
Step 3: Read variables a,b and c.
Step 4: If a>b
           If a>c
              Display a is the largest number.
           Else
              Display c is the largest number.
        Else
           If b>c
              Display b is the largest number.
           Else
              Display c is the greatest number.
Step 5: Stop



Monday 9 September 2013

Table design

arc bar bar3d
circle cleardevice clearviewport
closegraph detectgraph drawpoly
ellipse fillellipse fillpoly
floodfill getarccoords getaspectratio
getbkcolor getcolor getdefaultpalette
getdrivername getfillpattern getfillsettings
getgraphmode getimage(ex23) putimage(ex23)
imagesize(ex23) initgraph(ex24) grapherrormsg(ex24)
graphresult(ex24) setcolor(ex24) setfillstyle(ex24)
getmaxx(ex24) getmaxy(ex24) rectangle(ex25)
getmaxcolor(ex25) getmaxmode(ex26) getmodename(ex27)
getmoderange(ex28) getmoderange(ex28) getx(ex29)
gety(ex29) outtext(ex29) outtextxy(ex29)
moveto(ex29) pieslice(ex30) getlinesettings(ex31)
setlinestyle(ex31) line(ex31) lineto(ex32)
linerel(ex33) getpalette(ex34) setallpalette(ex35)
setpalette(ex35) getpalettesize(ex36) setrgbpalette(ex37)
moverel(ex38) putpixel(ex38) getpixel(ex39)
setaspectratio(ex40) setbkcolor(ex41) settextjustify(ex41)
settextstyle(ex41) gettextsettings(ex42) textheight(ex42)
getviewsettings(ex43) graphdefaults(ex44) textwidth(ex45)
sector(ex46) setactivepage(ex47) setvisualpage(ex47)
setgraphmode(ex47) setgraphbufsize(ex48) setusercharsize(ex49)
setfillpattern(ex50) installuserfont(ex51) setviewport(ex52)
setwritemode(ex53) _graphfreemem(ex54) _graphgetmem(ex54)

Wednesday 12 June 2013

Inspire me

Inspiring quotes and images will get posted in this blog soon