... Jeff> I am doing an sample exercise which demonstrate the usage of local Jeff> function. You really shouldn't worry about local() until you absolutely...
25063
Jenda Krynicky
jendaperl
Mar 12, 2007 9:50 pm
Please read this: http://perl.plover.com/FAQs/Namespaces.html and see if it helps. Let us know if something is unclear :-) Jenda ===== Jenda@... ===...
25064
cohibaport
Mar 13, 2007 10:07 pm
I recently uninstalled Perl 5.8.2 and reinstalled Perl 5.8.8. After doing this, I noticed there were some issues when attempting to restart apache. I initially...
25068
qafever
Mar 16, 2007 6:15 pm
Hi, I'm a newbie and need help. I'm trying to delete say c:\dev92;project92;branch directory on windows using unlink or rmdir functions. #file name: del.pl ...
25069
merlyn@...
merlynstoneh...
Mar 16, 2007 6:47 pm
... qafever> I'm a newbie and need help. I'm trying to delete say qafever> c:\dev92;project92;branch directory on windows using unlink or rmdir qafever> functions....
25070
qafever
Mar 16, 2007 8:58 pm
and how would I do that? delete all files recursively? ... rmdir ... 777 0095 ... training!...
25071
merlyn@...
merlynstoneh...
Mar 16, 2007 9:48 pm
... qafever> and how would I do that? delete all files recursively? "perldoc File::Path", and see "rmtree" in there. -- Randal L. Schwartz - Stonehenge...
25072
Dean
deanhod
Mar 17, 2007 12:09 am
Hello Humans, I need to parse a dir which has 23,000 entries. Below is the call i'm using. When I print out the @directory_array it has no entries. My question...
25073
merlyn@...
merlynstoneh...
Mar 17, 2007 12:52 am
... Dean> for (parse_dir(`ls -l`)) { This code is just soooo wrong, I can't even begin. Please look at File::Find. -- Randal L. Schwartz - Stonehenge...
25074
Jenda Krynicky
jendaperl
Mar 19, 2007 12:41 pm
From: "qafever" <atiqul@...> ... If you don't mind that it's Windows only ... #!perl use Win32::FileOp qw(Delete); $dir="c:\\dev\92;project92;\branch"; ...
25075
sailorpat2
Mar 19, 2007 12:54 pm
Can't figure out why the following code will not give me the file name correctly. open (FH,">>process.txt"); print FH "[$timestamp] $directory.92;n\n"; close...
25076
Jenda Krynicky
jendaperl
Mar 19, 2007 2:29 pm
From: "sailorpat2" <pat.hall@...> ... @backup_files = glob "$directory92;\*.sql"; There is no need to execute anything external, you can get the list ...
25077
Robert Brown
rdabman4
Mar 19, 2007 2:42 pm
Pat, have you run it through debugger? Bob sailorpat2 <pat.hall@...> wrote: Can't figure out why the following code will not give me the file name...
25087
Andy Schafer
lostgameparts
Mar 21, 2007 3:08 am
Hi, I am very new to Perl/CGI but I am working on a simple shopping cart system for my website. I am looking for a way to control my session management without...
25088
perl_1978
Mar 21, 2007 11:10 am
I'm trying to do a conditional if statement but the results I'm getting back are not the desired ones. $novar = `env | grep VAR`; if (($novar eq "VAR=1") ||...
25089
Kishore Balla
kishoreballa
Mar 21, 2007 11:14 am
doing chomp should solve your problem $novar = `env | grep VAR`; chomp $novar; if ( $novar eq "VAR=1" or $novar =~ /\s*/ ) { #something } else { #something } ...
25090
Damien Carbery
daymobrew
Mar 21, 2007 12:54 pm
... Only using the IP address would be very insecure, and useless if people use a proxy or NAT router to access your site as you will see one IP address for...
25091
buxh42a
Mar 21, 2007 1:30 pm
Why don't you use the %ENV hash to access environment variables? $novar = $ENV{VAR}; I'm not exactly sure what you are doing in the if condition. Are you just...
25092
perl_1978
Mar 21, 2007 2:12 pm
Hi Sam, thanks for the reply. Yes the $novar =~ m/\s/ is looking for whitespace - I think - after the command "env | grep VAR" is executed and it returns...
25093
merlyn@...
merlynstoneh...
Mar 21, 2007 2:34 pm
... Damien> Only using the IP address would be very insecure, and useless if Damien> people use a proxy or NAT router to access your site as you will see ...
25094
Noah
admin2@...
Mar 22, 2007 8:03 am
Hi Perl folks, Below is a JUNOS configuration snippet. I am wondering what would be the most optimal way to search/replace the text "accept" with the word ...
25096
Noah
admin2@...
Mar 22, 2007 2:31 pm
Hi Perl folks, Below is a JUNOS configuration snippet. I am wondering what would be the most optimal way to search/replace the text "accept" with the word ...
25097
Vivek Kumar
kumarvivek_2001
Mar 22, 2007 3:39 pm
Dear All, I have a package name Global in Global.pm file. This file I created to share the global variables (e.g $gvar1, $gvar2, $gvar3) across different Perl...
25098
merlyn@...
merlynstoneh...
Mar 22, 2007 4:12 pm
... Vivek> I have a package name Global in Global.pm file. This file I created to Vivek> share the global variables (e.g $gvar1, $gvar2, $gvar3) across...
25099
qafever
Mar 23, 2007 4:47 pm
Hi, thanks for your input. really appreciate it. I'm honored to have Randal L. Schwartz's reply. Yup, Learning Perl was the book I have gone through first,...
25100
merlyn@...
merlynstoneh...
Mar 23, 2007 5:45 pm
... qafever> I'm honored to have Randal L. Schwartz's reply. Yup, Learning Perl was qafever> the book I have gone through first, Great Book, very well written....
25102
qafever
Mar 26, 2007 9:51 pm
Hi, How would I go about copying fileset to a different directory such as 'cp -prf *' on linux $fromdir = "/home/user/app/install"; $todir =...
25103
Damien Carbery
daymobrew
Mar 27, 2007 11:13 am
... I searched CPAN for 'dircopy39; (http://search.cpan.org/search?query=dircopy&mode=all) and got one result: File::Copy::Recursive ...
25104
Ramesh
ramesh_ps1
Mar 27, 2007 12:20 pm
Hi, I am new to Perl installing IO:Socket on solaris 10 box. I downloaded IO-1.2301.tar.gz extracted and tried to install Since I dont have cc, I am using gcc...
25105
Paul Archer
geek65535
Mar 27, 2007 1:07 pm
... v8 is SPARCv8, the old 32-bit CPU series. Everything these days (definitely including your box, since it is running Sol 10) is SPARCv9, the 64-bit CPUs. ...