Changes between Version 5 and Version 6 of PerlTagScheme


Ignore:
Timestamp:
06/29/06 16:42:52 (8 years ago)
Author:
ingy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PerlTagScheme

    v5 v6  
    44 
    55{{{ 
    6 !perl/hash     # hash reference 
    7 !perl/array    # array reference 
    8 !perl/scalar   # scalar reference 
    9 !perl/code     # code reference 
    10 !perl/io       # io reference 
    11 !perl/glob     # a glob (not a ref) 
    12 !perl/regexp   # a regexp (not a ref) 
    13 !perl/ref      # a container ref to any of the above 
     6!!perl/hash     # hash reference 
     7!!perl/array    # array reference 
     8!!perl/scalar   # scalar reference 
     9!!perl/code     # code reference 
     10!!perl/io       # io reference 
     11!!perl/glob     # a glob (not a ref) 
     12!!perl/regexp   # a regexp (not a ref) 
     13!!perl/ref      # a container ref to any of the above 
    1414}}} 
    1515 
     
    1717 
    1818{{{ 
    19 !perl/hash:Foo::Bar   # hash ref blessed with 'Foo::Bar' 
    20 !perl/glob:Foo::Bar   # glob blessed with 'Foo::Bar' 
     19!!perl/hash:Foo::Bar   # hash ref blessed with 'Foo::Bar' 
     20!!perl/glob:Foo::Bar   # glob blessed with 'Foo::Bar' 
    2121etc... 
    2222}}} 
     
    2727 
    2828{{{ 
    29 !perl/object:Foo::Bar 
    30 !perl/:Foo::Bar 
    31 !perl/Foo::Bar 
     29!!perl/object:Foo::Bar 
     30!!perl/:Foo::Bar 
     31!!perl/Foo::Bar 
    3232}}} 
    3333 
    3434Note: the first form, while more verbose, more closely matches what Python and Ruby do. (I think) See [wiki:PythonTagScheme]. 
    3535 
    36 The '!perl' forms are only consumable by Perl. To share objects with Python, maybe use this form: 
     36The '!!perl' forms are only consumable by Perl (or languages supporting a '''full''' Perl semantic). To share objects with, say, Python, use this form: 
    3737 
    3838{{{ 
    39 !object:Foo.Bar 
     39!!object:Foo.Bar 
    4040}}}