Questions: 51

Answers by our Experts: 19

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

1. Which conditional statement is equivalent to "if (!<condition>)"?
a. unless ()
b. failure ()
c. fails ()
d. ifn ()

2. Correct command in Perl script
a. "cp file1 file2"
b. 'cp file1 file2'
c. `cp file1 file2`
d. {cp file1 file2}

3. What is -> Symbol in Perl?
sub display
{
foreach $line (@mybook)
{
if($line =~ m/Family/)
{

print "$line";
}
}
}

I need to print the line from my xml file after the pattern match line. What do I need to add to this!
program to prompt the user for number and string ,print string that number of times without using loop
How do you write a script in Perl showing the functions of a Pez Dispenser? The script is suppposed to show how you load colors (of Pez Candy) from a text file and then dispense the colors just as you would the candy in a Pez Dispenser.
$site=<STDIN>;
chomp $site;

print "\n";
print "source code\n\n 1 = php\n\n-> ";
$code=<STDIN>;
chomp($code);

if ( $site !~ /^http:/ ) {
$site = 'http://' . $site;
}
if ( $site !~ /\/$/ ) {
$site = $site . '/';
}
print "\n";

print "-> Target: $site\n";
print "-> Site source code: $code\n";
how i make this script get the target automatic from file.txt
How to create a perl program that finds the distance between two points in an array?
print "Please enter the file URL:";
$PnpLogPath = <>;

print "Please enter the Device URI: ";
$DeviceURI = <>;

open(HANDLE, $PnpLogPath);
@LogInput = < HANDLE >;

@subarray = grep /\Q$DeviceURI\E/, @LogInput;
foreach $subarray(@subarray)
{
print $subarray."\n";
}
I have a logfile say logfile.txt which contains info. I am passing name of file from command line and also the word which I want to find through command line and print those lines which contains that word. But somehow grep is not returning the line which contains it. HElp me out here.

The word which I am trying to find is --https://sn1.notify.Sunday,.net/unthrottSeaTacJFKInternational/01.00/AAHdC--PWgJuTrmAX1A3jeoyAgAAAAADAQAX1AQUZm52OkJCMjg1QTQ

The logFile is :

2012-07-25 18:31:30,788 access INFO request accepted. Request: , URI:https://sn1.notify.Sunday,.net/unthrottSeaTacJFKInternational/01.00/AAHdC--PWgJuTrmAX1A3jeoyAgAAAAADAQAX1AQUZm52OkJCMjg1QTQ**, Payload:

2012-07-25 18:31:30,859 root INFO insert req into server queue 2012-07-25 18:31:30,861 root DEBUG start consume requests from server queue [sn1.notify.Sunday,.net]

2012-07-25 18:31:30,862 root INFO try sending more requests. requests in queue: 688

2012-07-25 18:31:31,331 access INFO request accepted. Request: , URI:https://sn1.notify.Sunday,.net/unthrottSeaTacJFKInternational/01.00/AAFVBNQ4MAySQK-rDr0-CmOvAgAAAAADAQrDr0QUZm52OkJCMjg1QTQ, Payload:
There is no strict data types in perl as in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"
I retrived some data from db which is of length say 3(value=123) so in this case i need to prefix it with 0 (after value = 0123) and if it is only 12 we should prefix it with 00 that is (after value =0012) and same for one. I need the most efficient code!!

Note: no switch case and no indivisual looping allowed!!
Hi Techies,

i need some help.... I have to get GMT time without using any modules....
Any ideas???????
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS