-
-
-
-
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? ">#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?
-
-
-
How we can navigate the XML documents?
we can use the XML:DOM naviation methods to navigate though an XML::DOM node tree and then use getnodevalue to recover the data.
-
-
Any kind of help will be appreciated.
Thanks,
Shiv">Hi All,I would like to replace some entities in the text file with symbols using Perl.This is working fine for some special symbols but for the characters such as Zeta we should use Unicode/Hexadecimal values - xcex96. We are doing like this s/&zeta1;/"xcexb6"/g; . This is working fine only for 2 characters such as xb6. How to use this in Perl? How to make use unicode value for zeta in Perl.Any kind of help will be appreciated.Thanks,Shiv
-
-
-
-
-
-
-
-
-
-
-
Perl Interview Questions
Ans