Welcome, Guest
Username Password: Remember me

Spit out warnings on uninitialized variables Perl
(1 viewing) (1) Guest
Perl Script
  • Page:
  • 1

TOPIC: Spit out warnings on uninitialized variables Perl

Spit out warnings on uninitialized variables Perl 1 year, 4 months ago #469

  • scmuser
  • OFFLINE
  • Gold Boarder
  • scm master
  • Posts: 237
  • Points: 3427
  • Karma: 0
  • Honor Medal 2009
How to Spit out warnings on uninitialized variables in Perl?

Re: Spit out warnings on uninitialized variables Perl 1 year, 4 months ago #470

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44563
  • Karma: 4
  • Honor Medal 2009
#!/usr/local/bin/perl -w



This will help you (really, it will force you) to write better, cleaner code. Adding the -w switch to the perl interpreter will cause it to spit out warnings on uninitialized variables - potential bugs.
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar
  • Page:
  • 1
Time to create page: 0.72 seconds

     
    
Home Forum