how to embed java code in a perl script?

I am trying to embed Java code in a perl script using the Inline .
But when i run the script no output is shown . It seems that the script is hung since I don’t even get back the command prompt.

#!/usr/bin/perl
use strict; use warnings;

use Inline Java => <<’EOJ’;
public class Hi {

String greeting;

public Hi(String greeting) {
this.greeting = greeting;
}

public void setGreeting(String newGreeting) {
greeting = newGreeting;
}

public String getGreeting() {
return greeting;
}
}
EOJ

my $greeter = Hi->new("howdy");
print $greeter->getGreeting(), "\n";

Unix course question: ls *[world] command?

This was the question:
Select all the files below that will be displayed by the following command
ls *[world]
-> perl
Bob
tmp
-> hello
-> world

The ones with the arrows are the supposed right answers, but I only said world was correct. I don’t want to make a fuss about nothing if I’m wrong.

I need help incoporating wget into a perl script. The script needs to check for dead links.?

So my script needs to check whether or not a certain file exists. I want to know how to use the wget –spider command’s <STDOUT> in a conditional statement and check to see if a file exists with just wget. I tried using the -e but no avail.

Problem with sendmail and perl…..pls help….?

I installed Active Perl 5.8.8 and I installed sendmail also. When I run my script in the command prompt using perl <file.pl> , it is showing error. Is there any thing needed to send mail using perl or sendmail. The sendmail software is asking the smtp server name and port number and authentication, what shd I give there? I tried without giving any… it says unable to create a folder. Pls tell me the way to send mail.

Creating and using a Perl Module?

After writing a perl module, .pm file, where do I save it? Do you save all your modules in the same directory? Or in a directory relative to the .pl file containing the use command?

I’ve been placing modules in the same folder as .pl files, but getting error messages telling me "Cant locate .pm in @INC"

Help?

legitimate work from home jobs | Event Planning Bay Area | rent video games | Homeloans | Plumbing Courses in Manchester | increase fertility | Green Drink | Photo Keyring | Vitamin D Deficiency Symptoms | skip bags | Order Fulfillment Software | virtual receptionist | Educators Credit | bodybuilding workouts | window cleaning