Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pheuvel

    Getting Duplicate Values in Hash

    Gday, According to the perlfunc reference, "When used on a hash element, it tells you whether the value is defined, not whether the key exists in the hash. Use exists for the latter purpose." So your checking line should read: if (!exists($GlobalUserList{$UserID}))
  2. pheuvel

    I despair! no where else to turn. CGI error

    According to the perl pages, putting quotes around the first terminator will fix the problem. As in: print <<'END'; Regards, Pat
  3. pheuvel

    Write STDERR into file

    If you are running this program from a command line, try &quot;progname 2> errlog.txt&quot; or &quot;progname > all-log.txt 2>&1&quot; (And remove your STDERR close and reopen from your code). The first redirects only STDERR to a file, and the second redirects both STDOUT and STDERR. Hope this...
  4. pheuvel

    What does this line mean?

    Gday all, Don't want to start a religious war here, but saying &quot;perl is hard to read&quot; is not really correct (IMHO): anyone can write a program that is hard to read in any language! Just try supporting some of them!! But the way I read the ternary operator ( .. ? .. : .. ) for...
  5. pheuvel

    perl in Linux 8.0

    Gday Maunir, Make sure your perl program starts with a correct shebang (in your instance #!/usr/bin/perl). If perl is installed correctly, running &quot;perl -v&quot; should tell you a story about your installation. This will also allow you to verify what you installed. Regards, Pat
  6. pheuvel

    I am not very familiar with PERL an

    Gday coder1 Welcome to perl! Yes, perl programs can be run on NT. Works brilliantly. As with anything under NT, you are subject to your level of privilege. So you can list domain users and set all their names to Zaphod Beeblebrox if that be your fancy (and you have the correct rights). I use...
  7. pheuvel

    &lt;b&gt;Date from and through and QuickReports&lt;/b&gt;

    Gday there, In my report classes, I generally create a &quot;SetParams&quot; method. In your case, I would create one as: void __fastcall TMyReport::SetParams(TDateTime fromdate, TDateTime todate) { // do something with dates DateLabel->Caption =...
  8. pheuvel

    Exception difficulties

    Gday Douglas, The help stuff on exceptions mentions an exception object reference being passed to the handler. Try (pardon the pun) the following: string str=&quot;PARAM_1:15&quot;; try{ int assig=str.find('=',0); if(assig==string::npos) { Exception *e = new...

Part and Inventory Search

Back
Top