Saturday, June 14, 2008

Here is some Perl Code...

if ($_ =~ /^Process/)
{(undef-$jobName-undef-$project-undef) = split /\s+/-$_;
$jobName = uc($jobName);
$project = uc($project);
$project =~ s/\_DEP$/i/;
elsif ($_ =~ /^Command Line\: /)
{
$_ =~ s/^Command Line\: //;
$cmdLine = $_;
}
$jobCount{$jobName}++;

I can t understand what a lot of it is doing such as uc in $jobName = uc($jobName);
and the split and s/\_DEP$/i/;

Is there any good websites that explain these- such as
elsif ($_ =~ /^Command Line\: /)
$freq =~ s/^\s+//;
I understand it is <the line read> <equal and matches?> <something about commandline.. but not sure exactly>

I want to know what all the possible things inside the / / expression. THANKS!!!

Ok I don t think I spelled the last word right but bare with me. :) Ok so for Christmas my mom bought me this perl ring I m not sure the exact ddate or price but it was around Christmas and I m pretty sure it costs more then $50.00 And I ve kept good care of it it cleaning it never taking them off (inless I have hair reroval on my hands or I m doing yard work) and while I was in the car I swisted it around cause it was the wrong way on my finger and the perl came off- it feel inbetween the seat so we can t get it but I was wondering if Walamrt would let me get a new one or omthing if I gave them the ring it sself without and pearl and the receite. Anyone know? Please answer back thanks! :D
Hello? Anyone wanna answer please? :-)

i need to write a (perl) program that converts a binary number to decimal form. does anyone know a formula that i could use?

I use the select method to obtain a limit of 4 rows from mysql table.

I now want to store these 4 rows into separate arrays so i can create navigation without having to connect to my database again.How is this done?

Here is some perl code...

open(IN-"\\\\167.16.244.x\\ccaut\\stratus.job");
while(<IN>)
{
chomp $_;

next if ($_ !~ /\w+/);

if ($_ =~ /Including holidays/i)
{
$holiday = 1;
}

if ($_ =~ /^Process/)
{
.....

my questions:
1) What is the \\\\ for in the first line?
2) In the While (<IN>) line- does it go through each line in the file?
3) What exactly is this line doing "next if ($_ !~ /\w+/);"?
I couldn t find what !~ nor / /

THANKS!!!

Well this is on behalf of one of my friends:

http://img383.imageshack.us/img383/4205/12010492mh0.png

He gets this when he tried to read the book- also on another .chm book he also got this too

There s probably a simple answer to this but i dont know so....

No comments: