Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Re: Re:

by smitz (Chaplain)
on Sep 10, 2003 at 07:32 UTC ( [id://290330]=note: print w/replies, xml ) Need Help??

in reply to Re: Re:
in thread

Hi surrealistfashion,

Yes you do have some more reading to do :-) Check out the following:

Although you have the sub name in your URI, and the module has access to it, you have not 'imported' it into your program.
Just by declaring it with my doesn't automatically give it the value you woul like. This isn't PHP you know ;-)
Also, I ran the code I posted, it should work fine.

my EXPR my TYPE EXPR my EXPR : ATTRS my TYPE EXPR : ATTRS A "my" declares the listed variables to be local (lexically) t +o the enclosing block, file, or "eval". If more than one value i +s listed, the list must be placed in parentheses. The exact semantics and interface of TYPE and ATTRS are still evolving. TYPE is currently bound to the use of "fields" pragm +a, and attributes are handled using the "attributes" pragma, or starting from Perl 5.8.0 also via the "Attribute::Handlers" module. See "Private Variables via my()" in perlsub for detail +s, and fields, attributes, and Attribute::Handlers.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://290330]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-06-15 10:03 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.