Skip Menu |

This queue is for tickets about the Web-Detect CPAN distribution.

Report information
The Basics
Id: 84438
Status: resolved
Priority: 0/
Queue: Web-Detect

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)



Subject: SYNOPSIS example is incorrect
So great to find this module! I almost uploaded a similar one a few weeks ago but couldn't settle on a name space, got distracted, then I found your nice new one so I'll just send pull requests if you're willing? Back to this rt: the if in the SYNOPSIS example needs negated :) - say "Running under terminal" if detect_web(); + say "Running under terminal" if !detect_web(); multivac:~ dmuey$ perl -mWeb::Detect -E 'say "Running under terminal" if !Web::Detect::detect_web();' Running under terminal multivac:~ dmuey$ thanks!
Hi Daniel, Thanks for the comment. Actually it was a copy-paste mistake from Term::Detect so it should've been: say "Running under web" if detect_web(); Will be fixing and releasing a new version. Regards, Steven On Thu Apr 04 23:43:33 2013, DMUEY wrote: Show quoted text
> So great to find this module! I almost uploaded a similar one a few > weeks ago but couldn't settle on a name space, got distracted, then > I found your nice new one so I'll just send pull requests if you're > willing? > > Back to this rt: the if in the SYNOPSIS example needs negated :) > > - say "Running under terminal" if detect_web(); > + say "Running under terminal" if !detect_web(); > > multivac:~ dmuey$ perl -mWeb::Detect -E 'say "Running under terminal" > if !Web::Detect::detect_web();' > Running under terminal > multivac:~ dmuey$ > > thanks!