Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739612]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-11-24 00:26 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (343 votes). Check out past polls.