How to prevent file truncation in perl?
No Answer is Posted For this Question
Be the First to Post Answer
What is the use of "stderr()"?
How to determine strings length in perl?
Explain tk?
how to install a package in perl ????
my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?
Consider the following example #! /bin/perl use strict; sub sample { my @arr=(1,2,3,4); return @arr; } my ($a,$b,$c,$d) = &sample; print "$a\n$b\n$c\n$d\n"; In the above code, How can I get the $c without using the arguments such as $a,$b. I don't want to use any array to get the return values.
List the prefix dereferencer in Perl.
What is the use of -t?
how to find a substring in a string without using substr built in functions, and print the substring found
What is the usage of -i and 0s options?
What is the purpose of _package_ literal?
Why to use perl?