Who instantiated an object

2013-05-31 Thread Weidner, Ron
I have and object with a function called new. (seen below). What I want to do is instead of simply calling die I want to know who called new without the required params. (like a stacktrace) I've tried confess, longmess, and caller and they did not produce the caller of new. #!/usr/bin/perl

t character in regular expression

2012-10-25 Thread Weidner, Ron
In the following regex what is the t character doing? $linebuf =~ tr/\n/:/; -- Ron ** This e-mail is intended solely for the intended recipient or recipients. If this e-mail is addressed to you in error or you

POD and Perldoc

2012-09-13 Thread Weidner, Ron
I'm looking at documenting perl code I'm working on. I'm considering POD but I don't think it can do what I want. Example of what I would like... [code] # here I would put POD synopsis etc. # here I want to put POD that describes this function sub my_echo { my ($str)

Deployment Issues (Was: don't know where to start??? comparing files)

2011-10-14 Thread Weidner, Ron
Because this uses *my* environment when I run *your* Perl script. That's broken. Hardcode the path. Or install it using any of the module tools, which will replace #!perl with the proper hardcoded local Perl path. I also view this as a deployment problem which has probably been solved many

RE: Need help getting data from a structure..

2011-09-29 Thread Weidner, Ron
Can someone explain how to access $InstDesc?? Also please explain how I would access (that is read from or write to) to the $Severity scalar on the bottom structure.. Thanks in advance.. flk Sure I can help. (or guide you astray) #!/usr/bin/perl use strict; use warnings; my %PlcyActions