User Profile

Collapse

Profile Sidebar

Collapse
SonECrocket
SonECrocket
Last Activity: May 29 '09, 02:44 PM
Joined: Dec 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SonECrocket
    replied to How to export a text line to a new file?
    in Perl
    Something to this effect might work for you

    Code:
    open(INPUTFILE, "<inputfilename") or die "Can't open input file";
    open(OUTFILE, ">outputfilename") or die "Can't open output file";
    @lines=<INPUTFILE>;
    @greplines=grep(/"Line to search for"/, @lines);
    if (@greplines)
    {
      foreach $match (@greplines)
      {
        print OUTFILE $match."\n";
    ...
    See more | Go to post
    Last edited by eWish; May 28 '09, 01:10 AM. Reason: Please use the [code][/code] tags

    Leave a comment:


  • SonECrocket
    replied to help needed with function
    The best thing to due is use a variable in the loop. Then after the loop is done then return the variable. So the logic flows like this. First set the variable to false. Then loop through array setting variable to true if you have a match. If all elements in drawnBalls equall all elements in selectBalls. Then the variable will remain true. if any element doesn't match then set to false and break out of the for setting index to last value. This is...
    See more | Go to post
    Last edited by acoder; May 23 '09, 09:23 AM.

    Leave a comment:


  • SonECrocket
    replied to DTPicker problem.. need help here
    I am assuming that if you are using sql you are selecting the case from the database. I also assume that the database will have an open and close date for the case. In setting the current date and null for close date when creating the case for the first time. Then use the update command to update the sql database with the information needed. Then when select the case to close it use the current date and just update the close date in the database...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...