| avar | GumbyBRAIN: use the source |
| GumbyBRAIN | Hello, i have two to take the <stdin> and split ever 80 chars and then the source. |
| meppl | guten morgen |
| somian | $CharmedOnes->vanquish($source) |
| amf | Is there a clever way to add DEBUG(), INFO(), etc (from Log::Log4perl) only if they weren't already defined in my package, I want the package only to use them if Log::Log4perl has been use'd in a previous package |
| avar | *DEBUG = sub {} unless defined &DEBUG; |
| amf | avar: That is what I was thinking, but I felt that had to be a better way |
| ayrnieu | eval: package A; package B; print 1 if defined &List::Util::first |
| buubot | ayrnieu: 1 1 |
| ayrnieu | buubot-- |
| buubot | is a potvaliant land-lubber!appeared to work above, right? |
| ayrnieu | that won't print anything in a clean system, and will print 1 if package A use's List::Util perl -e 'print "package A; use List::Util; 1;" >> A.pm; perl -MA -le 'print 1 if defined &List::Util::first' # also works, of course. |
| action | CPAN upload: REST-Application-0.991 by MOCONNOR |
| CPAN | upload: REST-Application-0.991 by MOCONNOR |
| avar | eval: first() |
| buubot | avar: Error: Undefined subroutine &main::first called at eval line 1. |
| ayrnieu | eval: List::Util::first |
| buubot | ayrnieu: Error: Not enough arguments for List::Util::first at eval line 2, at EOF |
| avar | ayrnieu: HLAGH |
| ayrnieu | amf - I like that way; it doesn't rely on namespace pollution. |
| avar | eval: $poe_kernel |
| buubot | avar: |
| somian | OT, opinions sought: is there a custom wrt using a filename pattern for naming an e2|3fx filesystem image? IOW, creating a fs in a ordinary file to be mounted later using loopback *.e2fs ? |
| tag | hah -Wstrict-prototypes on a C++ source, cute. |
| somian | Heh :-) |
| dazjorz | Hey :) |
| amf | ayrnieu: Thanks, I might do that |
| tag | sometimes I wonder if people >& /dev/null their compiler output |
| somian | indeed |
| dazjorz | LeoNerd: there? |
| tag | dope, now my trac has syntax hilighting |
| dazjorz | tag: Why, the compiler spits out thousands of warnings anyway, and errors go to STDERR anyway. |
| tag | dazjorz: >& |
| dazjorz | ah. |
| somian | sayyadina ... is that not something from Dune? |
| sayyadina | somian : yes... another fan? :) |
| somian | Yes :) Remind me, what is it ... I am guessing a Bene Gesserit holy woman? |