Latest Answer: "grep" here is used for same reasons like used in UNIX i.e. to match certain value. ...
Latest Answer: The eval function provides a very simple way of checking certain events without affecting the overall execution of your script. In essence, the eval function just initiates a new instance of the Perl interpreter in order to evaluate a particular string ...
Latest Answer: perl -pi -e "s/search_string/replace_string/g" SourceFile ...
Latest Answer: In perl stacks are easy to be implemented. Stacks which follows LIFO (Last In First Out) data structure can be handled in perl with 'POP' and 'PUSH' keywords. POP Example:my $strTest = POP(@arrTest);print "$strTest";In this ...
What is the difference between the function oriented and Object oriented approach in the modules (CPAN). Mention the merits as well demerits of these two types.
Latest Answer: Advantages of PERL over C1) Perl runs on all platforms and is far more portable than C.
2) Perl and a huge collection of Perl Modules are free software (either GNU General Public License or Artistic License).3) Perl is very much efficient in TEXT ...
we can use the XML:DOM naviation methods to navigate though an XML::DOM node tree and then use getnodevalue to recover the data.
Latest Answer: You can use SAX if what you require is simple accesing of the xml structure. You can go for DOM if you need node handling capabilities like inserting a node, modifying a node, deleteing node and stuff like that.follow this link. I think it is most widely ...
#create directory if not thereif ( ! -s "$temp/engl_2/wf" ) { system "mkdir -p $temp/engl_2/wf";}if ( ! -s "$temp/backup_basedir" ) { system "mkdir -p $temp/backup_basedir";}${pack_2}= -M "${temp}/engl_2/wf/${wf_package_name}.data";${new_pack}= -M "${pack}/package.data";This is a sample script of perl language.What is the use of "-s" and "-M" in the above script?
I was asked how to implement the unix tail command in perl $ tail.pl t.txt 10 (display last 10 lines) I kind of managed with the simple ARRAY and they playing around with the $#Array etc but he wanted not without an array Any inputs ?
Latest Answer: die("couldnot open filen"); ---> terminate the program with customized message.die -> terminates with last system error message.exit(0) or exit; for success exit(1); failure die function never accepts number as argument.It always ...
View page << Previous 1 [2] 3 4 5 6 7 Next >>

Go Top