2df3 FreshPorts -- devel/p5-lexical-underscore
FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

Port details
p5-lexical-underscore 0.001 devel on this many watch lists=0 search for ports that depend on this port
Access lexical underscore of your caller
Maintained by: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 09 Mar 2013 18:19:18
Also Listed In: perl5
License: ART10 GPLv1


Starting with Perl 5.10, it is possible to create a lexical version of the Perl
default variable $_. Certain Perl constructs like the given keyword
automatically use a lexical $_ rather than the global $_.

It is occasionallly useful for a sub to be able to access its caller's $_
variable regardless of whether it was lexical or not. The (_) sub prototype is
the official way to do so, however there are sometimes disadvantages to this; in
particular it can only appear as the final required argument in a prototype, and
there is no way of the sub differentiating between an explicitly passed argument
and $_.

The lexical::underscore function returns a scalar reference to either a lexical
$_ variable somewhere up the call stack (using PadWalker magic), or to the
global $_ if there was no lexical version.

Wrapping lexical::underscore in ${ ... } dereferences the scalar reference,
allowing you to access (and even assign to) it.

WWW: http://search.cpan.org/dist/lexical-underscore/
SVNWeb : Main Web Site : Distfiles Availability : PortsMon

NOTE: FreshPorts displays only required dependencies information. Optional dependencies are not covered.

Required To Build:
  1. devel/p5-PadWalker
  2. lang/perl5.12
Required To Run:
  1. devel/p5-PadWalker
  2. lang/perl5.12

This port is required by:

for Build for Run

To install the port: cd /usr/ports/devel/p5-lexical-underscore/ && make install clean
To add the package: pkg_add -r p5-lexical-underscore


Configuration Options
     No options to configure

Master Sites:
  1. ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/
  2. ftp://ftp.auckland.ac.nz/pub/perl/CPAN/authors/id/T/TO/TOBYINK/
  3. ftp://ftp.cpan.org/pub/CPAN/authors/id/T/TO/TOBYINK/
  4. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/
  5. ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/id/T/TO/TOBYINK/
  6. ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/T/TO/TOBYINK/
  7. ftp://ftp.kddlabs.co.jp/lang/perl/CPAN/authors/id/T/TO/TOBYINK/
  8. ftp://ftp.mirrorservice.org/sites/cpan.perl.org/CPAN/authors/id/T/TO/TOBYINK/
  9. ftp://ftp.sunet.se/pub/lang/perl/CPAN/authors/id/T/TO/TOBYINK/
  10. ftp://mirror.hiwaay.net/CPAN/authors/id/T/TO/TOBYINK/
  11. http://at.cpan.org/authors/id/T/TO/TOBYINK/
  12. http://backpan.perl.org/authors/id/T/TO/TOBYINK/
  13. http://cpan.nctu.edu.tw/authors/id/T/TO/TOBYINK/
  14. http://ftp.jaist.ac.jp/pub/CPAN/authors/id/T/TO/TOBYINK/
  15. http://ftp.twaren.net/Unix/Lang/CPAN/authors/id/T/TO/TOBYINK/
  16. http://www.cpan.dk/authors/id/T/TO/TOBYINK/
  17. http://www.cpan.dk/modules/by-module/

Number of commits found: 1

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
09 Mar 2013 18:18:56
Original commit files touched by this commit  0.001
sunpoet search for other commits by this committer
- Add p5-lexical-underscore 0.001

Starting with Perl 5.10, it is possible to create a lexical version of the Perl
default variable $_. Certain Perl constructs like the given keyword
automatically use a lexical $_ rather than the global $_.

It is occasionallly useful for a sub to be able to access its caller's $_
variable regardless of whether it was lexical or not. The (_) sub prototype is
the official way to do so, however there are sometimes disadvantages to this; in
particular it can only appear as the final required argument in a prototype, and
there is no way of the sub differentiating between an explicitly passed argument
and $_.

The lexical::underscore function returns a scalar reference to either a lexical
$_ variable somewhere up the call stack (using PadWalker magic), or to the
global $_ if there was no lexical version.

Wrapping lexical::underscore in ${ ... } dereferences the scalar reference,
allowing you to access (and even assign to) it.

WWW: http://search.cpan.org/dist/lexical-underscore/

Number of commits found: 1

2879
Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
otrsMay 23
otrsMay 23
otrsMay 23
otrsMay 23
chromiumMay 22
chromiumMay 22
firefox*May 21
firefox-devel*May 21
firefox-esr*May 21
firefox10*May 21
firefox15*May 21
firefox3*May 21
firefox3-devel*May 21
firefox35*May 21
firefox36*May 21

8 vulnerabilities affecting 24 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds


Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 24539
Broken 216
Deprecated 478
Ignore 632
Forbidden 2
Restricted 292
No CDROM 109
Vulnerable 25
Expired 132
Set to expire 516
Interactive 33
new 24 hours 3
new 48 hours7
new 7 days31
new fortnight62
new month216

This site
What is FreshPorts?
About the Authors
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact
8e7

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2013 DVL Software Limited. All rights reserved.
0