List Info

Thread: How come this for loop makes an infinite loop?




How come this for loop makes an infinite loop?
user name
2006-12-21 05:51:04
Syntax error in for loop


 for($loop = 0; $loop != $input, $loop = $loop + 1; ) ==>
old


 for($loop = 0; $loop != $input; $loop = $loop + 1)=>new

lord_vodka_ccccccxxxxxxvi <lord_vodka_ccccccxxxxxxviyahoo.com> wrote:                                 

 print "Input ";
 $input = <STDIN>;
 chomp($input);
 print newline; print newline;
 TONE_ROW = (1,2,3,4,5,6,7,8,9,10,11,12);
 print TONE_ROW;
 print newline; print newline;
 print newline; print newline;
 
 for($loop = 0; $loop != $input, $loop = $loop + 1; )
   {
   print "TONE_ROWnn";
   push(TONE_ROW, shift(TONE_ROW));
   }
 
 
     
                       


Phone (mobile) : +91-98861 36420
E-Mail: jabirahmedyahoo.com, jabirahmedgmail.com
--
"a single
conversation across the table with a wise man is worth a
month's study of books."
---
 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
PERL command line to trigger the "enter" bar in the keyboard
user name
2006-12-21 14:35:10
Hi Guys,

Would anyone in the group know any PERL command line to
trigger the
"enter" bar on the keyboard.

I have a script which has a line that executes another
PERL-CGI
script,this CGI script  outputs a graphical 

display,causing my script to hang, you can continue only the
remaining
lines of the script when you press 

the "enter" bar to make the graphical display
disappear and continue
with the succeeding lines of d script.

If anyone knows the solution , please do tell me , spent
days looking
for this in the net already.

Thanks in advance.

Merry Xmas!
Arnel 

 



[Non-text portions of this message have been removed]



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
Extract Code
user name
2007-01-02 04:45:30
Hi,
 I would like to extract a some word from log file and
export the 
those words as a CSV file.
Can any one help me on this.

E.g)
i need to extract the time stamp (14:57:37), the word CPU 
and 
Current value 8%.

Below is the sample log file .
Kindly help me on this
krishna


B3692A GlancePlus C.03.86.00    14:57:37 swqapd02 9000/800  

Current  Avg  High
------------------------------------------------------------
---------
----------
CPU  Util   SUU                                             
 |  
8%    8%    8%
Disk Util   FFFF                                            
 |  
8%    8%    8%

------------------------------------------------------------
---------
----------
                                                            
        
PROCESS LIST     
                              User      CPU Util   Cum     
Disk             Thd
Process Name  PID   PPID  Pri Name    ( 400% max)  CPU    IO
Rate    
RSS    Cnt
------------------------------------------------------------
---------
-----------
oracleUBOM     339      1 154 oraubom   9.5/ 0.0     4.9 
0.0/ 0.0  
40.8mb    1

B3692A GlancePlus C.03.86.00    14:57:37 swqapd02 9000/800  

Current  Avg  High
------------------------------------------------------------
---------
----------
CPU  Util   SUU                                             
 |  
8%    8%    8%
Disk Util   FFFF                                            
 |  
8%    8%    8%

------------------------------------------------------------
---------
----------
                                                            
        
PROCESS LIST     
                              User      CPU Util   Cum     
Disk             Thd
Process Name  PID   PPID  Pri Name    ( 400% max)  CPU    IO
Rate    
RSS    Cnt
------------------------------------------------------------
---------
-----------
oracleUBOM     339      1 154 oraubom   9.5/ 0.0     4.9 
0.0/ 0.0  
40.8mb    1



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )