1Lvalue(3)             User Contributed Perl Documentation            Lvalue(3)
2
3
4

NAME

6       PDL::Lvalue - declare PDL lvalue subs
7

DESCRIPTION

9       Declares a subset of PDL functions so that they can be used as lvalue
10       subs. In particular, this allows simpler constructs such as
11
12         $a->slice(',(0)') .= 1;
13
14       instead of the clumsy
15
16         (my $tmp = $a->slice(',(0)')) .= 1;
17
18       This will only work if your perl supports lvalue subroutines (i.e. ver‐
19       sions  >= v5.6.0). Note that lvalue subroutines are currently regarded
20       experimental.
21

SYNOPSIS

23        use PDL::Lvalue; # automatically done with all PDL loaders
24

FUNCTIONS

26       subs
27
28       test if routine is a known PDL lvalue sub
29
30         print "slice is an lvalue sub" if PDL::Lvalue->subs('slice');
31
32       returns the list of PDL lvalue subs if no routine name is given, e.g.
33
34         @lvfuncs = PDL::Lvalue->subs;
35
36       It can be used in scalar context to find out if your PDL has lvalue
37       subs:
38
39         print 'has lvalue subs' if PDL::Lvalue->subs;
40

AUTHOR

42       Copyright (C) 2001 Christian Soeller (c.soeller@auckland.ac.nz). All
43       rights reserved. There is no warranty. You are allowed to redistribute
44       this software / documentation under certain conditions. For details,
45       see the file COPYING in the PDL distribution. If this file is separated
46       from the PDL distribution, the copyright notice should be included in
47       the file.
48
49
50
51perl v5.8.8                       2004-09-07                         Lvalue(3)
Impressum