• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6725: Plugins: Change global package variables from "use vars" to "our"

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension many Normal Closed   patch 5.1.1

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

It is recommended to use our instead of use vars qw() for global package variable declaration in plugins.

More at http://perldoc.perl.org/functions/our.html and http://perl.apache.org/docs/general/perl_reference/perl_reference.html

-- TWiki:Main/PeterThoeny - 2011-05-17

Closing this for today's TWiki-5.1.1 release.

-- PeterThoeny - 2012-01-15

ItemTemplate
Summary Plugins: Change global package variables from "use vars" to "our"
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 5.1.1
SVN Range TWiki-5.1.0-trunk, Tue, 19 Apr 2011, build 21041
AppliesTo Extension
Component many
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:21303 TWikirev:21304 TWikirev:21305 TWikirev:21306 TWikirev:21307 TWikirev:21308 TWikirev:21363 TWikirev:21383 TWikirev:21384 TWikirev:21385 TWikirev:21386 TWikirev:21426 TWikirev:21427 TWikirev:21487 TWikirev:21488 TWikirev:21489 TWikirev:21490 TWikirev:21491 TWikirev:21492 TWikirev:21493 TWikirev:21494 TWikirev:21495 TWikirev:21496 TWikirev:21524 TWikirev:21525 TWikirev:21526 TWikirev:21527 TWikirev:21580 TWikirev:21581 TWikirev:21582 TWikirev:21583 TWikirev:21584 TWikirev:21585 TWikirev:21586 TWikirev:21587 TWikirev:21588 TWikirev:21589 TWikirev:21596 TWikirev:21597 TWikirev:21598 TWikirev:21599 TWikirev:21600 TWikirev:21601 TWikirev:21602 TWikirev:21603 TWikirev:21604 TWikirev:21605 TWikirev:21606 TWikirev:21607 TWikirev:21608 TWikirev:21609 TWikirev:21610 TWikirev:21611 TWikirev:21612 TWikirev:21613 TWikirev:21614 TWikirev:21615 TWikirev:21616 TWikirev:21617 TWikirev:21618 TWikirev:21619 TWikirev:21620 TWikirev:21621 TWikirev:21622 TWikirev:21623 TWikirev:21624 TWikirev:21625 TWikirev:21626 TWikirev:21627 TWikirev:21628 TWikirev:21629 TWikirev:21630 TWikirev:21631 TWikirev:21632 TWikirev:21633 TWikirev:21634 TWikirev:21635 TWikirev:21636 TWikirev:21637 TWikirev:21638 TWikirev:21639 TWikirev:21640 TWikirev:21641 TWikirev:21642 TWikirev:21643 TWikirev:21644 TWikirev:21645 TWikirev:21646 TWikirev:21647 TWikirev:21648 TWikirev:21649 TWikirev:21650 TWikirev:21651 TWikirev:21652 TWikirev:21653 TWikirev:21654 TWikirev:21655 TWikirev:21656 TWikirev:21657 TWikirev:21658 TWikirev:21659 TWikirev:21660 TWikirev:21661 TWikirev:21662 TWikirev:21663 TWikirev:21664 TWikirev:21665 TWikirev:21666 TWikirev:21667 TWikirev:21668 TWikirev:21669 TWikirev:21670 TWikirev:21671 TWikirev:21672 TWikirev:21673 TWikirev:21674 TWikirev:21675 TWikirev:21676 TWikirev:21677 TWikirev:21678 TWikirev:21679 TWikirev:21680 TWikirev:21681 TWikirev:21682 TWikirev:21683 TWikirev:21684 TWikirev:21685 TWikirev:21686 TWikirev:21687 TWikirev:21688 TWikirev:21689 TWikirev:21690 TWikirev:21691 TWikirev:21692 TWikirev:21693 TWikirev:21694 TWikirev:21695 TWikirev:21696 TWikirev:21697 TWikirev:21698 TWikirev:21699 TWikirev:21700 TWikirev:21701 TWikirev:21702 TWikirev:21703 TWikirev:21704 TWikirev:21705 TWikirev:21706 TWikirev:21721 TWikirev:21722 TWikirev:21723 TWikirev:21724 TWikirev:21725 TWikirev:21726 TWikirev:21727 TWikirev:21728 TWikirev:21729 TWikirev:21730 TWikirev:21731 TWikirev:21732 TWikirev:21733 TWikirev:21734 TWikirev:21735 TWikirev:21736 TWikirev:21737 TWikirev:21738 TWikirev:21739 TWikirev:21740 TWikirev:21741 TWikirev:21742 TWikirev:21743 TWikirev:21744 TWikirev:21745 TWikirev:21746 TWikirev:21747 TWikirev:21748 TWikirev:21837 TWikirev:21870 TWikirev:21871 TWikirev:21872 TWikirev:21873 TWikirev:21874 TWikirev:21875 TWikirev:21876 TWikirev:21877 TWikirev:21878 TWikirev:21879 TWikirev:21880 TWikirev:21882 TWikirev:21883
TargetRelease patch
ReleasedIn 5.1.1
Edit | Attach | Watch | Print version | History: r194 < r193 < r192 < r191 < r190 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r194 - 2012-01-16 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback