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 bkrike 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: *

  • Users: varakal
  • Content: Threads
  • Order by date
  1. varakal

    Execute a module's sub-routine by default

    I need to execute a sub-routine from a module everytime I run a perl script. This sub-routine sets the library path depending on the base path of the script. Easier way would be modify the script and add code to execute this sub-routine. But we have hundreds of scripts to edit which we are not...
  2. varakal

    where can I get dom.jar

    Hello, where can I get dom.jar jar file to import dom stuff. I need org.w3c.dom package. Thanks.
  3. varakal

    DBD Oracle installation problem

    Hello, I am trying to install DBD::Oracle and I am getting the following error when I do make test. Can someone let me rectify this. Thanks. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01base................Failed to load...
  4. varakal

    XML::Parser how to reduce pseudo-tag "0"

    I have the following XML file in the below format: <root> <clients id="4"> <name>temp</name> <order>yes</order> </clients> </root> I am using XML::Parser Tree Style and the Dumper gives me: $VAR1 = [ 'root', [ {}, 0...
  5. varakal

    OOPerl bless question

    I have the following class: package MyClass; sub new { my $classname = shift; bless {'a'=>1,'b'=>2}, $classname; } 1; And I am accessing the class in my script as below: #!/usr/bin/perl -w use MyClass; my $objref = MyClass->new(); print ref($objref) . "\n"; print for...
  6. varakal

    What does positive look-ahead assertion doing here

    print "Palindrome is $1\n" while ($str =~ m/(?=((.+).?(??{reverse($2)})))/g); when a string like 'sdsd' is given, the above code will give all palindromes such as 'sds' and 'dsd' If we remove the positive look ahead assertion as below: print "Palindrome is $1\n" while ($str =~...
  7. varakal

    Why couldn't I find Getopt:Std module

    Can any one guide me in finding Getopt::Std module. I couldnt find in CPAN. Is this included in some other module?
  8. varakal

    'if' statement error

    I am having a problem with the following code. my $exists = 0; my @exists = $dbh_src->FetchData(); chomp($exists[0]); print "Before if stmt: Fetched: $exists[0], userid = $user_id, flag = $exists\n"; $exists = 1 if ('$exists[0]' == '$user_id'); print "After if stmt: Fetched: $exists[0], userid...
  9. varakal

    Passing array reference to sub-routine

    I am having problem with passing array reference to sub-routine. I think I should be doing a small mistake somewhere. print "Above function: $data[0]\n"; my $line = array_refer("\@data"); sub array_refer { my @data = @$_[0]; print "In function: $data[0]\n"; } The output I...
  10. varakal

    recursive directory removal question

    I need to remove directories recursively. I was wondering if there is any perl function equivalent to unix function 'rm -r directory_name'. rmdir function removes a directory only when it is empty. If there anyway that I can force the directory and all contents in it to get deleted. I can have a...
  11. varakal

    How to get file creation time

    I have couple of questions: 1) How do we know when a file is created. In stat, atime gives the last access time and mtime gives the last modified time. But is there a way to know when the file is first created. 2) I feel this is something more difficult, is there a direct way to find when a...
  12. varakal

    How to get number of lines in a text file

    How can I get total number of lines in a text file using perl from command line. $. gives the line number where the file handle is pointing to, but I need only the last line number. Thanks.
  13. varakal

    Failed to open a row set error

    My system went down and had to move to a new system. So I installed crystal reports and created DSN's. But when I tried to see the output it is giving the following error: Failed to open a row set. Details: HYTOO:[MySQL][ODBS 3.51 Driver]mysqld-3.23.49-log]Unknown table 'ticket_dup' in filed...
  14. varakal

    Parameter Field in Record Selection

    I have a parameter field. Lets say it is CountryName. When I enter a CountryName, it should match that countryname from the database. We can do that with {Country.CountryName} = {?CountryName} in record selection. Example, if we give {?CountryName} as USA, then it diplays the rows only with...
  15. varakal

    CRCP Tutorials or Books

    I am planning to take CRCP exam.. starting from Level 1. Can anyone suggest me about tutorials or books specific for these exams. Thanks.
  16. varakal

    Error in fetching row of a database table

    I couldnt understand where the error could be. I get the correct sql statement, when I execute this statement in MySQL, it gives the correct document_id. So there is no mistake in SQL statement. There are no compilation errors or runtime errors, but I couldnt get correct value in...
  17. varakal

    retrieve data from different databases

    I need to join two tables from different databases. $src->prepare($sql) would execute the sql statement, but my doubt is how to address the tables from different databases in the sql statement. Thanks.
  18. varakal

    passing parameter from subreport to main report

    Hi.. I have a problem passing value from subreport to main report. I have following code in a formula in a subreport, where I am using shared variable. I should get #Total Billable Amount value into total_asr_value. (#Total Billable Amount value is correct and I am getting it). if...

Part and Inventory Search

Back
Top