Write a script to reverse a string without using perl's built in functions?
Answer / Shailendra Kumar Dwivedi
"my $str = "Hello"; my @reversed; while(length($str) > 0){ push @reversed, substr($str, -1); $str = substr($str, 0, length($str)-1); } print join(",",@reversed).""
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain splicing of arrays?
Can inheritance be used in perl? Explain with the help of an example.
What is perl scripting?
What is chomp() operator/function?
Explain subroutine?
Explain the default scope of variables in perl?
How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?
what r the future opportunities in PERL/LINUX after 3 years ??
Explain the various characteristics of perl.
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
How will you open a file in read-only mode in perl?
Explain lexical variables.