Perl some time hank with system command.

L

Lim kiang Leng

I have a problem by using the perl command. Some time it hank with the
system command. such as below.

system ("command") or `command` .


The command that make me hank was ,
`hostname`
system("clear")
system ("mv a b")

can any one tell me, what is the possible reason that cause it hank ?
 
M

Michele Dondi

I have a problem by using the perl command. Some time it hank with the
system command. such as below.

Define "to hank". This is not a joke: I'm not a native English speaker
and I couldn't find it in my dictionary. May well be slang, but I'm
not familiar with it.

More generally, the description of your problem is too vague: give
more (but reasonably not too many) details.

Have you considered reading the posting guidelines?
The command that make me hank was ,
`hostname`

As a general rule, do not *ab*use system() and/or qx//. Nothing wrong
IMHO with this one, but maybe you could be interested in Sys::Hostname
anyway...


HTH,
Michele
 
P

Paul Lalli

Michele Dondi said:
Define "to hank". This is not a joke: I'm not a native English speaker
and I couldn't find it in my dictionary. May well be slang, but I'm
not familiar with it.

As a native (U.S.) English speaker, I can assure you that 'hank' is
neither proper nor any slang that I've ever heard.

Paul Lalli
 
J

jl_post

Michele Dondi replied:
Define "to hank". This is not a joke: I'm not a native English
speaker and I couldn't find it in my dictionary. May well be
slang, but I'm not familiar with it.


For the record, "Hank" is an English nickname that's short for
"Henry" ("Enrico"). Although I doubt that's what he meant.

If he IS referring to a person's name, his sentence might be better
written as:

which sounds better, but I have no idea who this Hank person would be.

The name "Hank" should not be confused with the word "hanky," which
is short for "hankerchief" ("fazzoletto").

If you think "Hank" is a strange nickname for "Henry," you're not
the only one. After all, even the Homestar Runner said in his
proclamation, "Henceforth, those named Henry will no longer be allowed
to call themselves Hank. That's just too much of a stretch." (This
discussion is getting off-topic, so I'll end it here.)

-- Jean-Luc
 
J

jl_post

Sisyphus replied:
I think the OP means "hang" - where the process just
sits there doing nothing, and fails to terminate.


Hmmm... Let's see if Perl agrees with you. :)
perl -MText::Soundex -le "print soundex('hank')" H520

perl -MText::Soundex -le "print soundex('hang')"
H520

So, it looks like Perl's Soundex module agrees with you, as both words
return a code of H520.

But there are other words that also have Soundex code H520:

Haines hammock Hans Hanukkah haunch Haynes Heinz
hence Hines hinge homage hong honk Honshu hummock
humus hunch hung hunk Hyannis hying

Maybe the original poster mean that his computer "honks" (or
"beeps") when the system() command is used. But I'm sure you're right,
Rob... he probably mean "hangs." (But if his script were "hying," I'd
really have no idea what he would be talking about...)

-- Jean-Luc
 
S

Sisyphus

Sisyphus replied:




Hmmm... Let's see if Perl agrees with you. :)



H520

One marvels at the fact that the Earth managed to rotate on its own
axis, one revolution per day, *before* Text::Soundex was written ;-)

Cheers,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top