Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: lunarny
Forum: Perl Apr 15th, 2005, 10:29 AM
Replies: 5
Views: 503
Posted By lunarny
Thank you, Spydoor. I understand now. for $_ =...

Thank you, Spydoor.
I understand now. for $_ = $_{$_}; I didn't notice the "$_" is changing before, I simply thought it would print the hash. But actually, it didn't exactly print hash. It needs the...
Forum: Perl Apr 15th, 2005, 1:27 AM
Replies: 5
Views: 503
Posted By lunarny
Thank you very much. "$2 causes the value of $2...

Thank you very much.

"$2 causes the value of $2 to get trucated from $_ after each loop..... not sure why ?"

s/(.{5})(.{5})?/$_{$2}=$1,$2/e;
my opinion, the sentence above has two...
Forum: Perl Apr 13th, 2005, 12:41 AM
Replies: 5
Views: 503
Posted By lunarny
can anyone explain the script to me?thanks!

#!/usr/bin/perl
print while $_=$_{$_};
$_='OTcommailDngATghiliaguans';
1 while s/(.{5})(.{5})?/$_{$2}=$1,$2/e;
print while $_=$_{$_};
Showing results 1 to 3 of 3

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:37 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC