Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Is this code correct

by borisz (Canon)
on Jan 28, 2009 at 15:31 UTC ( #739612=note: print w/ replies, xml ) Need Help??


in reply to Is this code correct

Looks wrong to me $_1 is always undefined and @info; seems senseless too.

Boris


Comment on Re: Is this code correct
Replies are listed 'Best First'.
Re^2: Is this code correct
by kennethk (Abbot) on Jan 28, 2009 at 15:38 UTC
    The OP actually typed $_[1] and PM interpolated that into $_1, so that's no problem. Looping over an undefined array, on the other hand... Perhaps it's a global...
Re^2: Is this code correct
by hax0id on Jan 28, 2009 at 15:49 UTC
    @info = ( "9,1[i] 15,1Release : 11,1305 - IrcBot", "9,1[i] 15,1Author : 11,1$auth - 305 coderz", "9,1[i] 15,1Contact : 11,1$authmail", "9,1[i] 15,1Uname -a: 11,1$sys", "9,1[i] 15,1Uptime : 11,1$up", "9,1[i] 15,1Spread Mode: 11,1$t5", "9,1[i] 15,1Security Mode: 11,1$y5"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-08 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls