Hi All, I have the following procedure: $MAC = "00:11:22:33:44:55"; @MAC = split /:/, $MAC; $hexMAC = ""; foreach (@MAC) { $hexMAC = $hexMAC.chr(hex($_)); ...
... IF it worked, I think it will print the native 8-bit encoding for your machine, which is most likely ASCII, but not necessarily. ... ord() is basically the...
Hi Rob, When i use the print, i see that everything is good. My problem is when i use the system or exec. When i execute this command manualy on the shell, i...
Marcos, It's hard to say what's happening on your system with so little to go on, but I'd suspect that there's a difference in how the command mrtg behaves...
Hello All, I solved my problem, i was using the version 'Perl 5.005_03' default of Solaris 8, after that i was upgrade for perl-5.8.7-sol8-sparc-local.gz of...
In my program I have the following two test conditions, the second "if" is nested into the first. if($records->[$idx_r][$idx_f]){print $q->param($choice), ": ...
... If $choice is not defined, param() returns an empty string or an empty list depending on context. It might also return these results if $choice is defined,...
... Oopsie! It returns an undefined value of an empty list. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254...
Hi Damien, Yes i do get the error when its done by hand. Is it something to do with the permissions for the FTP user ?? Thanks, Shailesh. ... Can you reproduce...
... server ... So you get the 553 error when you use ftp... good to know. I just tried to 'cd /usr/bin; put file' and got "553 file: Permission denied.". To me...
Hello Damien, Turns out it was a permissions issue... I had to assign permissions to CpeMGrs Dir as well as its parent dirs.. it worked then..!!! Thanks for...
hello, This is my perl script to split the various entities available as part of the "date" command in Linux: #start $date = `date`; print "Today is $date\n"; ...
Hi! The problem you faced, is just because - perl keeps two space for printing date. You just need to remove the extra space in between. The code should be the...
Hello All, How can i count how many characters one word have? There is a function done that make this? Have someone ever made some like this? I appreciate some...
Hi, Below is my script and a sample input file that you must cut and paste into a separate file "test.txt". The script worked great when the ID were all...
... da da da dum dum! da da da da dum dum! there must be 3C ways to read the perldocs! plain ole "perldoc perlvar"! or grep through a text file! or lynx up to...
J.E. Cripps
cycmn@...
Oct 5, 2006 12:22 pm
24356
see perldoc perlvar ... -- Thiago Nascimento #!/usr/bin/perl $_="tMM naaCt Feocmama_itpUilucoGa";$_.=$1,print $2 while s/(..)(.)//;print substr$_,1,1;...
Hi Shailesh, Yes ur rigth. The space BW the Month and Day normally took two white space . Regarding the The month Value comes in the shorter form. For that...
... The simplest fix is to change your split call to: split(/\s+/,$date); This will allow for more than one space to be between items. A more portable solution...
Hi, I don't know why I'm getting this error. When I run my script I delete the old files before creating creating the new ones (see previous post for code). It...
Hi, I have been tasked to convert the code I wrote in ASP to Perl. I have never written anything in Perl. The program I am working with is iLinc. It has been...
... The backslashes are not being interpreted as you want them. I know of 3 choices: use forward slashes (yes, it works on Windows) or use double backslashes...
I have tried all the code below and none has worked. I still get a "page can not be displayed" error. The file is in the same folder as the web page...