Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

05 November 2007


Total 32 pages. You are browsing page 32/32.

First :: Prev :: [...] [28] [29] [30] [31] [32] :: Next :: Last

23:52 <****> Jule: you generally use pod above the function, and validation of arguments passed to do that.
23:52 <****> anno-, so if you define a subroutine as sub SubName { print; } you cannot call it as: SubName $var; ?
23:52 <****> Jule: yes, you can
23:53 <****> eval: print foo; sub foo { "foos!" }
23:53 <****> Zoffix: undef
23:53 <****> assuming the parser sees the sub definition first
23:53 <****> eval: sub foo { "foos!" }; print foo;
23:53 <****> Ah, I see
23:53 <****> Zoffix: foos!1
23:53 <****> Jule, ^
23:53 <****> I'd use user-defined subroutines with parens anyway
23:53 <****> Jule, with use strict; use warnings; the first one would give an error;
23:53 <****> that's the only purpose (not using parens)
23:54 <****> eval: print foo(); sub foo { "foos!" }
23:54 <****> Jule: foos!1
23:54 <****> Ah, interesting
23:54 <****> I guess it doesn't have a direct use for me, though lovely to know its use in case I ever come across it, thanks guys ;)
23:56 <****> dondelelcaro, POD above the function found ugly and in contrast to PBP.
23:58 <****> I love Perl::Critic :]
23:58 <****> hrm, Acme::Perl::Heckle
23:58 <****> Takes strict programming standards to the next level, above strict/warnings, hehe
23:58 <****> Jule, Do you use parens for carp?
23:59 <****> apeiron, I've actually not made use of Carp yet
23:59 <****> I'm relatively new to Perl I suppose
--- Log closed Tue Nov 06 00:00:19 2007


Total 32 pages. You are browsing page 32/32.

First :: Prev :: [...] [28] [29] [30] [31] [32] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo