in reply to Re: use warnings uninitialized to my own sub?
in thread use warnings uninitialized to my own sub?
thank you.#!/usr/bin/perl -w use strict; #use warnings FATAL => qw{ uninitialized }; local $SIG{__WARN__} = sub { die "your variable is not defined!\n"; }; my $var; print "the variable is $var\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: use warnings uninitialized to my own sub?
by JavaFan (Canon) on Dec 08, 2010 at 11:50 UTC |