Revision history for with
+0.03 2017-07-23 21:30 UTC
+ With this release, this module is formally deprecated. Don't expect any
+ new release.
+ + Doc : Document deprecation.
+ + Fix : Deprecation warnings for \C.
+ + Upd : Metadata overhaul.
+
0.02 2008-05-14 21:40 UTC
+ Doc : Added a few caveats.
+ Doc : POD quirks.
Changes
MANIFEST
+META.json
META.yml
Makefile.PL
README
--- /dev/null
+{
+ "abstract" : "Lexically call methods with a default object.",
+ "author" : [
+ "Vincent Pit <perl@profvince.com>"
+ ],
+ "dynamic_config" : 0,
+ "generated_by" : "ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter version 2.150010",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : 2
+ },
+ "name" : "with",
+ "no_index" : {
+ "directory" : [
+ "t",
+ "inc"
+ ]
+ },
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Carp" : "0",
+ "ExtUtils::MakeMaker" : "0",
+ "Filter::Util::Call" : "0",
+ "Scalar::Util" : "0",
+ "Sub::Prototype::Util" : "0.08",
+ "Test::More" : "0",
+ "Text::Balanced" : "0"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "0"
+ }
+ },
+ "runtime" : {
+ "requires" : {
+ "Carp" : "0",
+ "Filter::Util::Call" : "0",
+ "Scalar::Util" : "0",
+ "Sub::Prototype::Util" : "0.08",
+ "Text::Balanced" : "0",
+ "perl" : "5.009004"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "bugtracker" : {
+ "web" : "http://rt.cpan.org/Dist/Display.html?Name=with"
+ },
+ "homepage" : "http://search.cpan.org/dist/with/",
+ "license" : [
+ "http://dev.perl.org/licenses/"
+ ],
+ "repository" : {
+ "url" : "http://git.profvince.com/?p=perl%2Fmodules%2Fwith.git"
+ }
+ },
+ "version" : "0.03",
+ "x_serialization_backend" : "JSON::PP version 2.94"
+}
---- #YAML:1.0
-name: with
-version: 0.02
-abstract: Lexically call methods with a default object.
-license: perl
-author:
- - Vincent Pit <perl@profvince.com>
-generated_by: ExtUtils::MakeMaker version 6.42
-distribution_type: module
-requires:
- Carp: 0
- Filter::Util::Call: 0
- Scalar::Util: 0
- Sub::Prototype::Util: 0.08
- Text::Balanced: 0
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
+---
+abstract: 'Lexically call methods with a default object.'
+author:
+ - 'Vincent Pit <perl@profvince.com>'
build_requires:
- ExtUtils::MakeMaker: 0
- Test::More: 0
+ Carp: '0'
+ ExtUtils::MakeMaker: '0'
+ Filter::Util::Call: '0'
+ Scalar::Util: '0'
+ Sub::Prototype::Util: '0.08'
+ Test::More: '0'
+ Text::Balanced: '0'
+configure_requires:
+ ExtUtils::MakeMaker: '0'
+dynamic_config: 0
+generated_by: 'ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter version 2.150010'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: '1.4'
+name: with
+no_index:
+ directory:
+ - t
+ - inc
+requires:
+ Carp: '0'
+ Filter::Util::Call: '0'
+ Scalar::Util: '0'
+ Sub::Prototype::Util: '0.08'
+ Text::Balanced: '0'
+ perl: '5.009004'
+resources:
+ bugtracker: http://rt.cpan.org/Dist/Display.html?Name=with
+ homepage: http://search.cpan.org/dist/with/
+ license: http://dev.perl.org/licenses/
+ repository: http://git.profvince.com/?p=perl%2Fmodules%2Fwith.git
+version: '0.03'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
with - Lexically call methods with a default object.
VERSION
- Version 0.02
+ Version 0.03
+
+WARNING
+ This module was an early experiment which turned out to be completely
+ unpractical. Therefore its use is officially deprecated. Please don't
+ use it, and don't hesitate to contact me if you want to reuse the
+ namespace.
SYNOPSIS
package Deuce;
sub hlagh { my $self = shift; print "Deuce::hlagh $self->{id}\n" }
+
package Pants;
sub hlagh { print "Pants::hlagh\n" }
use with \$deuce;
hlagh; # Deuce::hlagh 1
Pants::hlagh; # Pants::hlagh
-
+
{
use with \Deuce->new(2);
hlagh; # Deuce::hlagh 2
A call will never be dispatched to a method whose name is one of :
my our local sub do eval goto return
- if else elsif unless given when or and
+ if else elsif unless given when or and
while until for foreach next redo last continue
eq ne lt gt le ge cmp
map grep system exec sort print say
AUTHOR
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
- You can contact me by mail or on #perl @ FreeNode (vincent or
- Prof_Vince).
+ You can contact me by mail or on "irc.perl.org" (vincent).
BUGS
Please report any bugs or feature requests to "bug-with at rt.cpan.org",
order to add hints support and more placeholder patterns.
COPYRIGHT & LICENSE
- Copyright 2008 Vincent Pit, all rights reserved.
+ Copyright 2008,2017 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 VERSION
-Version 0.02
+Version 0.03
=cut
-our $VERSION = '0.02';
+our $VERSION = '0.03';
=head1 WARNING