Tagged with:  

Perl: Process an array or a hash inside a Template

On March 17, 2012, in PERL, by Dipin Krishna

Process and array or a hash inside a perl template #Print an Array named items [% FOREACH item IN items -%] [% item %] [% END -%]   #Print a HASH named items [% FOREACH key IN items.keys.sort -%] [% key %]: [% terms.$key %] [% END -%] Enjoy coding!

 

RubyOnRails: Create a Controller and Views for it using a single command

On February 6, 2011, in Rails, Ruby, by Dipin Krishna

Lets create a controller named ‘home‘ with  views ‘index‘, ‘view2′ view3′. Fortunately, you can do that in a single command. Enter this command in your terminal: $ rails generate controller home index view2 view3 Rails will create several files for you, including app/views/home/index.html.erb. This is the template that will be used to display the results [...]

Tagged with:  
Tagged with:  

Perl: Send a chat message to your gmail buddy using Jabber

On December 23, 2010, in PERL, by Dipin Krishna

Net::Jabber provides a Perl user with access to the Jabber Instant Messaging protocol. Net::Jabber is a convenient tool to use for any perl script that would like to utilize the Jabber Instant Messaging protocol. While not a client in and of itself, it provides all of the necessary back-end functions to make a CGI client [...]

Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...