Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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]
[marioroy]: `bash -c "clang --version 2>/dev/null"`
[choroba]: Sane people don't use csh
[marioroy]: the 1>&2 will work, not shown
[marioroy]: sorry, did not know which if cmd.exe or unix (bash)
[choroba]: csh considered harmful
[erix]: no, I'm using bash :)
[marioroy]: :)
[marioroy]: I use the default and happens to be bash
[erix]: heh, I like the "Resolved" (Christiansen is really funny)
Discipulus is makita a reincarnation of grinder?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-03-23 08:24 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.