First  |  Prev |  Next  |  Last
Pages: 485 486 487 488 489 490 491 492 493 494 495 496 497 498
print statement creates key in hash with reference to empty array??
In the code below the print val statement actually creates an key 'ABC' in the hash if it does not exist ( i wanted to print the value of the 0th element in an array , the reference to which is stored in a hash with key 'ABC'). Why should a print create a new key, shouldnt it just print undefined, and not create... 1 Feb 2006 14:35
Why does Net::SFTP trigger my die handler when no errors?
Greetings. Kindly consider, if you please, this trivial sample script which illustrates my question: #!/usr/bin/perl use warnings; use strict; use Net::SFTP; local $SIG{__DIE__} = sub { print "Oh no - I'm dead!\n"; }; my ( $host, $user, $password, $local_file, $remote_file ) = ... 31 Jan 2006 15:32
fedora core 3 install error - no drives found
I have a dell optiplex gx620. I already have windows 2003 installed on C drive. I am planning to install fedora core 3 to D drive. But somehow I got this error in the middle of installation. "An error has occurred - no valid devices were found on which to create new file systems. Please check your hardware to t... 30 Jan 2006 14:56
Java sucks, Perl Rules.
in java to set a variable to a string mutable requires using the string bulder class. but in perl you can just do this $a = "hello"; in java to print that string you have to do this System.out.println(a); but in perl you just do this print $a; java is a staticly typed single pardigram languige thats w... 6 Feb 2006 20:55
string manipulation
Hi, I have an input string. It is a full path of a file. eg. //server/dirA/dirB/file.txt How can I parse it into directory and file? i.e //server/dirA/dirB/ and file.txt Also, I have a directory as an input. e.g //server/dirA/dirB/ How can I check the last character is a / or not? Thanks a lot ... 29 Jan 2006 11:54
Check subroutine-specific requirements on module import
Hi all. I've got a simple problem that I can't work out an elegant way to solve. I have a simple Perl module which is basically a wrapper for some external binaries. I want the module to check for the existence of those binaries on import, but only for the binaries which are actually going to be used by the subr... 9 Feb 2006 10:01
FAQ 7.18 What's the difference between deep and shallow binding?
This is an excerpt from the latest version perlfaq7.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 25 Jan 2006 00:09
"Util.obj : error LNK2001: unresolved external symbol _Perl_seed"
Sisyphus wrote: He already knows about it. See http://rt.cpan.org/Public/Bug/Display.html?id=16199 Ah, indeed. Somehow that page isn't indexed in a general Google query... I guess it was a bit careless of me to rely on Google only and not actually drill down in CPAN. FWIW, making the suggested change to U... 24 Jan 2006 19:31
How to check if a file is exist or not?
Could anybody give a sample code for this question? Thanks! ... 24 Jan 2006 10:37
How to install perl's module without internet connection?
Hi all, I am installing some perl's module on windows (Active Perl 5.8). I have downloaded the packages,such as CGI.ppd and CGI-3.04.tar.gz then I call ppm install cgi.ppd, but it try to access the web site. unfortunately, I have to work in a non-internet environment. How can I install the module without inter... 23 Jan 2006 02:42
First  |  Prev |  Next  |  Last
Pages: 485 486 487 488 489 490 491 492 493 494 495 496 497 498