© 2023 PodTECH IO
All rights reserved.

Get in Touch

Perl

Perl Substr

Perl Substr substr This function supports three sets of passed values as follows: [perl] substr (STRING,OFFSET,LEN,REPLACEMENT) substr (STRING,OFFSET,LEN) substr (STRING,OFFSET) [/perl] The function: substr (STRING,OFFSET) returns all characters in the string after the designated offset from the start of the passed string. The function: substr (STRING,OFFSET,LEN) returns all characters in the string after the designated […]

Perl

Perl Lower/Upper Case First Character

Perl Lower/Upper Case First Character ucfirst Takes a string and retruns it with the first character in upper case. [perl] ucfirst Str1 [/perl] lcfirst Takes a string and retruns it with the first character in lower case. [perl] lcfirst Str1 [/perl]

Perl

Perl Index

Perl Index index This function returns the position of the first occurance of the specified SEARCH string. If POSITION is specified, the occurance at or after the position is returned. The value -1 is returned if the SEARCH string is not found. [perl] rindex STRING,SEARCH,POSITION rindex STRING,SEARCH [/perl]

UNIX

Solaris Zones

Solaris Zones 1 Overview 1.1 Global Zone – overview 1.2 Non-Global Zone – overview 2 Considerations before choosing zones 2.1 When should I consider using zones? 2.2 Can Solaris 8 be provided in a zone? 3 Resource Management 3.1 CPU capping 3.2 Memory capping 3.3 Process capping 3.4 Global Zone Capping 4 Configuration 4.1 Supported […]

UNIX

A Tutorial on Wget

A Tutorial on Wget Basics Wget is one of the powerful tools available there to download stuff from internet. You can do a lot of things using wget. Basic use is to download files from internet. To download a file just type [bash] wget http://your-url-to/file [/bash] But you cannot resume broken downloads.use -c option to […]

Perl

PERL – Length

PERL – Length [perl] $RESULT = length(EXPRESSION); [/perl] Perl’s length() function simply returns the length of a perl string in characters [perl] $myString = ‘perl.about.com’; $myLength = length($myString); [/perl] In this example, we’ve created a string with the value perl.about.com. When we run the length function on the string, it will return 14, or the […]

Perl

Perl Push Array

Perl Push Array A slightly more interesting kind of variable is the array variable which is a list of scalars (ie numbers and strings). Array variables have the same format as scalar variables except that they are prefixed by an @ symbol. The statement @food = (“apples”, “pears”, “eels”); @music = (“whistle”, “flute”); assigns a […]