# Attribution - For Methods

- ## Two kinds of attributes: Handle Attributes and Method Attributes

- ##

- ## Many DBI methods take an ‘attributes’ parameter

  - in the form of a reference to a hash of key-value pairs

- ## The attributes parameter is typically used to provide ‘hints’ to the driver

  - Unrecognised attributes are simply ignored
  - So invalid attribute name (like typos) won't be caught

- ## The method attributes are generally unrelated to handle attributes

  - The connect() method is an exception
  - In DBI v2 prepare() will also accept handle attributes for the new handle

Previous slide | Next slide | Back to first slide | View graphic version