#perl - Wed 28 Mar 2007 between 18:40 and 18:43



mofino(fine)
OK!
Aankhen``jseval: var @foo = qw/a b c d/; $foo[-1]
buubotAankhen``: Error: Error: SyntaxError: illegal character at line 0: var @foo = qw/a b c d/; $foo[-1]
dngorSame as ever, only a little less crazy.
Aankhen``Eh.
amnesiacoh, wait all but -1, well still
siliAankhen``: first, you're not allowed to use c-style for loops in perl unless you have a really good reason.
Aankhen``eval: my @foo = qw/a b c d/; $foo[-1]
buubotAankhen``: d
dngorNot that most people would notice. :)
mofinodngor, that's good. Good to see you're still around, and alive.
Alive is always nice.
Aankhen``sili: I know, I just wasn't sure what to use instead...
amnesiachi dngor!
mofinodngor, they would notice if you disappeared.
siliAankhen``: second, element all elements but the last element? do_something for 0..$#array-1
pheorehshello there
dngormofino: We could test that... :]
Aankhen``Hmm.
silierr, modify all elements except the last*
mofinolife++
Aankhen``jseval: my @foo = qw/a/; $_ .= "bzzt" for @foo[0 .. $#foo - 1]
buubotAankhen``: Error: Error: SyntaxError: illegal character at line 0: my @foo = qw/a/; $_ .= "bzzt" for @foo[0 .. $#foo - 1]
Aankhen``Gah.
eval: my @foo = qw/a/; $_ .= "bzzt" for @foo[0 .. $#foo - 1]
buubotAankhen``:
Aankhen``eval: my @foo = qw/a/; $_ .= "bzzt" for @foo[0 .. $#foo - 1]; [ @foo ]
buubotAankhen``: ['a']
siliAankhen``: or even for(@foo[0..$#foo-1]) {...}
Aankhen``Oh, excellent.
mofinoman
Aankhen``Thank you. I did think of that, but for some reason I didn't think it would work. Serve me right for not trying it...
lekurandal: How do I get an account of $aoa[X] now? I do scalar($aoa[0]) and it returns a ref to ARRAY
pheorehsgot a programming problem, here is what I want to do, I have the chars (a-z, A-Z, 1-9), and I want to generate every combination of those characters up to say 4 or more characters long. so I want to see , aBx as well as Zqqq or just plane F, does something like this already exist, if not, whats the best way to go about it, recursive function scripting is giving me a headache. any ideas ?
mofinocoming in here reminds me how fun perl is.
and all the wack jobs that come with it.
silipheorehs: HOORAY FOR SEQUENCE GENERATION
metalfanhi
mofino(perl community of mental patients)++

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 123 

IrcArchive