Archive for May, 2008

how to zip file in linux

May 13, 2008

suppose there is folder name “backup” containing subfolders and files then,
> zip -r backup.zip backup

how to take input from keyboard and print to screen

May 8, 2008

#!/usr/bin/perl
$input = <STDIN>; // this will take input from keyboard
print $input ; // this will output to the screen

where is perl installed

May 8, 2008

by default its installed in linux
/usr/bin/perl
in scripts you have to write #!/usr/bin/perl to tell the script that it is perl interpreter.
sometimes the path is
/usr/local/bin/perl