#perl - Wed 2 May 2007 between 19:57 and 20:04



Choomreally?
that would be even better
friedoI think Class::Std does it (but it also does that retardted inside-out object crap too)
Choomchecking
stuufcould you use Exporter to do that?
foomamy fooa = ("foo", "foo2", "foo3"); while(<$fooa>) { print; }
any reason that doesn't print?
stuufyou'd have to kind of turn it around into 'Importer'
friedofooma, because it's not valid Perl
fooma*my $fooa
sorry
stuufassigning a list to a scalar?
friedoyou can't assign a list to a scalar
foomai'm just trying to get an array to print once through while... pretty damn easy to do it in ruby
or bash
stuufmy @fooa = (..); for (@fooa) ...
Botje_forsaken: print foreach $fooa
*fooma
friedofooma, I think you want for(@fooa) { print }
or print for @fooa;
actionlimetang is now away. Reason: Sleeping. Current time: 22:54:57
limetangis now away. Reason: Sleeping. Current time: 22:54:57
stuufor maybe just print @fooa
Botje_limetang: great. turn that off please.
foomanext if = /foo2/;
can you do that in foreach?
Botje_forsaken: sorry, that's not valid perl.
you can do next if /foo2/; though.
nanonymeAni-_: meh, i read the rest of the thread. almost makes me want to cry >_<
or beat someone with a mallet
stuufeval: @fooa=qw/foo1 foo2 foo3/; for (@fooa) {/foo2/ && next; print}
buubotstuuf: foo1 foo3
foomanice=)
sorry for being such a newb
friedoeww, don't use short-circuits for conditionals
&& is exactly the same length as if!
and "if" doesn't require the shift key :)
ChoomI see the idea behind Class::Std as well as the benefits
but I don't like the implementation since it tinkers with my namespaces
fuseprint unless /foo2/ looks clearer
stuufyeah i'd do that

Page: 4 11 18 25 32 39 46 53 60 67 

IrcArchive