Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts

Tuesday, July 26, 2016

interview details for Perl/ Unix developer @ deutsche bank

Recently I had interview @ Deutsche bank for perl developer.

I would like to share , though most of the question where pretty basic , few added my learning. :)


Tuesday, March 24, 2015

Perl and selenium - a trail of youtube history


Recently I wanted to to get complete list of the youtube history page to a video I have seen a long time back. Though Youtube save ur maintain ur history but does not provide the option to search your history. The history button provided shows very few videos at time.

So I decided to write my own script recipe to handle this scenario. Though I have know about selenium for along time but never tried it Perl API. Let see it this can help me to get my list.

 Before reading this script recipe u need to check some info video and slide share get the functionality and usage the module (ingredient) we will going to use 

Friday, February 13, 2015

simple usage Time::HiRes of the 'for execution time of child process

Hi All

some times we are required to control the time execution of the child sub program. This can be achieved use the  Time::HiRes



I have added the code snippet. Here  I have line the main program (line 9 ) to sleep for 30 sec.
But setup alarm timeout to 3 sec (line 4)  and trigger timeout after 3 sec and setup local variable $SIG{ALRM} to time out/

Thursday, December 4, 2014

flock - All u need to know abut file locking in perl




Some times we need control over  read and write over files operation. File locking comes for rescue.

Though Perl provide many function to control over  file locking operation. I found flock function is the best.

Perl monks has a great tutorial for flock and operation and usage . Simple usage  and operation number and their meaning.


  sub LOCK_SH { 1 } ## shared lock
  sub LOCK_EX { 2 } ## exclusive lock
  sub LOCK_NB { 4 } ## non-blocking
  sub LOCK_UN { 8 } ## unlock 





Sunday, August 10, 2014

all u need to know about perl unit testing

Hi
I have been using Test::Simple, I always wanted to know about Test::More

In the below talk James has been able to easily capture all important modules and function offered by them especially ok, is,  and like

Check out the video , 56 min worth spending :)


 

Tuesday, April 8, 2014

Overriding the core function/ subrotine in perl

Though its not recommended but some times we are in need to change or extend the core functionality of inbuilt Perl function/ subroutine.

This can be easily implemented in the following way. I have created a small gist for changing the core functionality.( Just for fun)



You can read it more in perdoc .

Friday, December 6, 2013

Twitter app using perl – Get your following – Part 3

Hi Again,

If you have seen the your twitter page , you will find the following tab about the user.



As U can can see in the image , there are four important tab
1. tweet (your own tweet)
2. following
3. followers
4. list

Saturday, November 30, 2013

Twitter app using perl - Tweet your status - Part 2

Hi All,
The second part will be simple to update your own status using the perl script.
For that initially, you need to go setting tab.


Under the setting tab, change the permission setting for your app to read , write and acess direct message as given below


Friday, November 29, 2013

Twitter app using perl – Part 1


Hi All,

I thought it would be nice quest to create an aap with Step by Step guide.
Here in this series , I will gonna create an app for twitter using Cpan module “Net::Twitter“.


Step 1 .
You need to create an account on dev.twitter.com and need to register your new app.

Step 2.
If you have already finished up with step one , by now you must be having following details for new registered app
Consumer key
Consumer secret
Access token
Access token secret

Tuesday, November 26, 2013

Perl special variable cheat sheet

Hi all,

Again this will be a post for the perl lover.
Recently I was browsing, I  came across the blog of Peteris Krumins blog. The blog has list of interesting article concerning Perl, awk and sed.

One of the article, that attracted my regex mind was his Perl special variable cheat sheet. His 4 page cheat sheet is really easy and collate all the special variable, you may  require play code golf. (I really did not know , Perl has that many special variable)
You can download the cheat sheet here  or from the original link.



Friday, November 15, 2013

Perl vs perl

The following discussion is an expansion on a question and answer which can be found in the perlfaq1 page of Perl's documentation, namely:
What's the difference between "perl" and "Perl"?
Sometimes you'll see "Perl" written, with a capital P, sometimes "perl", sometimes even PERL.
Confused? Not to worry, Israel.pm to the rescue :-)
The rules are actually quite simple:
  • "Perl" should be used when one is writing about the language, for example:
    Perl is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It's also a good language for many system management tasks. The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal).
  • "perl" should be used when one is writing about the executable which interprets and compiles the Perl code, for example: the perl executable can usually be found at /use/bin/perl on Unix/Linux systems, or on c:\Perl\bin\perl.exe on Windows systems.
  • The above two usage forms are not rigidly adhered to, even in Perl's documentation, but in any case you should never use "PERL".
    "PERL" is a backronym, so unless you are going to use it as a joke, don't. It is way overused and abused, and it is time to put it to rest.
There's a famous saying, attributed to Tom Christiansen, which says that Only perl can parse Perl
We'll leave you now to ponder these words of wisdom...

Tuesday, August 20, 2013

One of the best interview by larry Wall (his personal side)

U might have seen many of the techinical interview by Perl creator  but this interview is more about person Larry Wall u might not have heard off.