Skip to main content

Posts

Showing posts from June, 2010

What I did with Perl

Perl What all features of Perl have I used? \t Open è Mutt/sendmail – for sending mail è DBI è When u declare a variable with @ at the start, it is an array. Within an array, you can assign values like C/C++ - Arr[0] = 1; Arr[1] = 2; è You declare a variable when it starts with $ è Foreach – is for iteration è For loop is exactly same as C++ è When you want to use a particular feature of perl, you say ‘use DBI’ and then you can use it. è The function definition starts with ‘sub ’ è Each line in perl ends with a ‘;’ è If you do $MODE = ; the script will wait for user’s input, and once input is provided, that value will be assigned to MODE variable. è Split function of perl strings is same as strtoken of strings. è Foreach can be used as below – foreach my $val (@temp_raw_value) è Two strings can be concatenated as – $String = $str1.$str2 è ‘Else if’ is like this – ‘elsif’ è and && are similar to C/C++ è If in a ‘if’ block, you want to do string comparison – following are the ope...

Comparison (Sybase-Oracle, UNIX-LINUX, Perl-Python)

Why is sybase better than Oracle ? Sybase is better : secure, cheap, faster, low maintenance, skilled. http://www.rocket99.com/sybase/syb_vs_ora.html http://www.dba-oracle.com/oracle_news/news_sybase_vs_oracle_linux.htm Sybase is 20% to 3000% faster than Oracle. Why is Linux catching up more compared to other UNIX flavors? Linux cheaper, more secure, fast response to security threats, kernel freely available, http://www.linuxquestions.org/linux/articles/Technical/UNIX_Vs_Linux http://www.diffen.com/difference/Linux_vs_Unix Perl Vs Python