Search the web
Sign In
New User? Sign Up
perl-beginner · Perl Beginners Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 24336 - 24365 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
24336
Hi All, I have the following procedure: $MAC = "00:11:22:33:44:55"; @MAC = split /:/, $MAC; $hexMAC = ""; foreach (@MAC) { $hexMAC = $hexMAC.chr(hex($_)); ...
Bobby Jafari
jafari_bobby
Offline Send Email
Oct 2, 2006
12:32 am
24337
... 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...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Oct 2, 2006
4:01 am
24338
... sprintf ("%.2d:%.2d",ord(substr($hexMAC},0,1)),ord(substr($hexMAC,1,1)));...
Bobby Jafari
jafari_bobby
Offline Send Email
Oct 2, 2006
10:34 am
24339
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 Onisto
mlonisto
Offline Send Email
Oct 2, 2006
11:51 am
24340
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...
Rob Biedenharn
rab6687
Offline Send Email
Oct 2, 2006
12:54 pm
24341
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...
Marcos Onisto
mlonisto
Offline Send Email
Oct 2, 2006
5:33 pm
24342
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), ": ...
hooyar66
Offline Send Email
Oct 4, 2006
9:03 pm
24343
... 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,...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Oct 4, 2006
11:48 pm
24344
... Oopsie! It returns an undefined value of an empty list. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Oct 5, 2006
12:10 am
24345
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...
Shailesh Hegde
shail_hegde
Offline Send Email
Oct 5, 2006
4:16 am
24346
... 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...
Damien Carbery
daymobrew
Offline Send Email
Oct 5, 2006
8:06 am
24347
Hello friends, Here is my Code, use File::Copy; my $filename="hello.txt"; my $filetobecopied = "$filename"; my $newfile = "$filename"."_temp.txt"; ...
joshypy
Offline Send Email
Oct 5, 2006
9:53 am
24348
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...
Shailesh Hegde
shail_hegde
Offline Send Email
Oct 5, 2006
10:22 am
24349
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"; ...
shailesh
shail_hegde
Offline Send Email
Oct 5, 2006
10:34 am
24350
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...
manoj mitra
manoj_mitra2001
Offline Send Email
Oct 5, 2006
10:50 am
24351
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...
Marcos Onisto
mlonisto
Offline Send Email
Oct 5, 2006
11:39 am
24352
Hi, what does this mean $@ ? thanks [Non-text portions of this message have been removed]...
Ozgur Akan
ozgurakan
Offline Send Email
Oct 5, 2006
11:50 am
24353
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...
baba_babuskha
Offline Send Email
Oct 5, 2006
11:52 am
24354
Use the function 'length'. For example: my $crt = 'ab13#&c'; my $num_crt = length $crt; HTH ... -- Thiago Nascimento #!/usr/bin/perl $_="tMM naaCt...
tnas
nascimentoth...
Offline Send Email
Oct 5, 2006
12:09 pm
24355
... 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@...
Send Email
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;...
tnas
nascimentoth...
Offline Send Email
Oct 5, 2006
12:24 pm
24357
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...
gopi ramya
gopi_nath28
Offline Send Email
Oct 5, 2006
1:16 pm
24358
... 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...
Damien Carbery
daymobrew
Offline Send Email
Oct 5, 2006
1:17 pm
24359
Thanks a lot. tnas <nascimentothiago@...> wrote: Use the function 'length'. For example: my $crt = 'ab13#&c'; my...
Marcos Onisto
mlonisto
Offline Send Email
Oct 5, 2006
1:31 pm
24360
... Many thanks Charles - your examples make the problem much clearer. NJH...
hooyar66
Offline Send Email
Oct 5, 2006
2:59 pm
24361
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...
baba_babuskha
Offline Send Email
Oct 5, 2006
3:06 pm
24362
Nevermind...I had to "chomp" the path and filename. It works now. ... delete ... post ... 1-...
baba_babuskha
Offline Send Email
Oct 5, 2006
3:10 pm
24363
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...
chipwillis2003
Offline Send Email
Oct 5, 2006
4:26 pm
24364
... 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...
Damien Carbery
daymobrew
Offline Send Email
Oct 5, 2006
4:41 pm
24365
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...
chip willis
chipwillis2003
Offline Send Email
Oct 5, 2006
7:23 pm
Messages 24336 - 24365 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help