| **Fair value measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail) - Recurring - USD ($) $ in Thousands** | Jan. 31, 2023 | Oct. 31, 2022 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|---------------|
| **Assets:**                                                                                                                                              |          |          |
| Foreign currency forward contracts                                                                                                                       | $ 12,851      | $ 5,035       |
| Total assets at fair value                                                                                                                               | 12,851        | 5,035         |
| **Liabilities:**                                                                                                                                         |          |          |
| Deferred compensation plans                                                                                                                              | 11,118        | 9,076         |
| Foreign currency forward contracts                                                                                                                       | 3,401         | 11,724        |
| Total liabilities at fair value                                                                                                                          | 14,519        | 20,800        |
| Level 1                                                                                                                                                  |          |          |
| **Assets:**                                                                                                                                              |          |          |
| Foreign currency forward contracts                                                                                                                       | 0             | 0             |
| Total assets at fair value                                                                                                                               | 0             | 0             |
| **Liabilities:**                                                                                                                                         |          |          |
| Deferred compensation plans                                                                                                                              | 0             | 0             |
| Foreign currency forward contracts                                                                                                                       | 0             | 0             |
| Total liabilities at fair value                                                                                                                          | 0             | 0             |
| Level 2                                                                                                                                                  |          |          |
| **Assets:**                                                                                                                                              |          |          |
| Foreign currency forward contracts                                                                                                                       | 12,851        | 5,035         |
| Total assets at fair value                                                                                                                               | 12,851        | 5,035         |
| **Liabilities:**                                                                                                                                         |          |          |
| Deferred compensation plans                                                                                                                              | 11,118        | 9,076         |
| Foreign currency forward contracts                                                                                                                       | 3,401         | 11,724        |
| Total liabilities at fair value                                                                                                                          | 14,519        | 20,800        |
| Level 3                                                                                                                                                  |          |          |
| **Assets:**                                                                                                                                              |          |          |
| Foreign currency forward contracts                                                                                                                       | 0             | 0             |
| Total assets at fair value                                                                                                                               | 0             | 0             |
| **Liabilities:**                                                                                                                                         |          |          |
| Deferred compensation plans                                                                                                                              | 0             | 0             |
| Foreign currency forward contracts                                                                                                                       | 0             | 0             |
| Total liabilities at fair value                                                                                                                          | $ 0           | $ 0           |

| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258
+ Details**Name:**us-gaap_AssetsFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**instant |
| X                                                                                                                                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_AssetsFairValueDisclosureAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                        |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of asset contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward contracts, and swaps.
+ References
No definition available.
+ Details**Name:**us-gaap_ForeignCurrencyContractAssetFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of liability contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward (delivery or nondelivery) contracts, and swaps entered into.
+ References
No definition available.
+ Details**Name:**us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value of financial and nonfinancial obligations.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258
+ Details**Name:**us-gaap_LiabilitiesFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_LiabilitiesFairValueDisclosureAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                        |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of other liabilities.
+ References
No definition available.
+ Details**Name:**us-gaap_OtherLiabilitiesFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |