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. Corwinsw

    Inheriting DBI problem

    Oh my goodness. I need to read the manuals more carefully... By default $dbh = DBI->connect(...) returns a $dbh blessed into the DBI::db class. And the $dbh->prepare method returns an $sth blessed into the DBI::st class (actually it simply changes the last four characters of the calling...
  2. Corwinsw

    Inheriting DBI problem

    Hi, somebody tried inheriting DBI? package Test::TMYDBI; our @ISA = qw(DBI); use base 'DBI'; sub execute { my($this) = shift; print "test"; return $this->SUPER::execute(); } I get the following error: DBI subclasses 'Test::TMYDBI::db' and ::st are not setup...
  3. Corwinsw

    Non Case Sensitive Replacement

    It should be ok, but may be you wanna add the "g" flag because this way you will replace only the first occurence. Corwin
  4. Corwinsw

    find / replace vaules in a file

    newperluser, in the sampwo mistakes. First the g flag of the reg exp - without it you will replace only the first ocurrence of the expression. Second you don't anything with the replaced string - may be prin/store it somewhere - it is replaced only in the $_ variable, but not in the file. Corwin
  5. Corwinsw

    Perl + procedures problem

    Is calling procedures this way faster than writing SQL queries in Perl? Corwin
  6. Corwinsw

    execute a command line script perl and read the response

    http://search.cpan.org/~gaas/libwww-perl-5.805/lib/LWP.pm Corwin
  7. Corwinsw

    LWP params Best practice

    $uri = URI->new( $url ); $uri->query_form( $query_params ); my $req = HTTP::Request->new( POST=>$uri ); $ua->request($req); Where the $query_params is a hash reference with the names and values of the params. Corwin
  8. Corwinsw

    LWP params Best practice

    Hi. Can you tell me what is the best practice to compose and escape params, when using LWP. Currently I am doing that: my $params = shift; my $params_as_str; if ( ref $params eq 'HASH' && $params ) { foreach my $k ( keys %{$params} ) { $params_as_str .=...
  9. Corwinsw

    File as a database

    10x dude, I was searching just something like that. Corwin
  10. Corwinsw

    File as a database

    I wanna create my own simple database (one table with 4-5 columns), and hold it in some files. Also wanna use select/update statements the same way as in DBI interface allows. Can somebody hint me the best way(a module), which I can do that? Corwin
  11. Corwinsw

    Parsing CSV files

    You can use also command line cpan, but should download nmake first and while configuring give it's path. Corwin
  12. Corwinsw

    Auto Save field

    I need to AutoSave using XML HTTP Request, when change a field ot just to understand when there is changed field in the form. Currently I am simulating onchange event with onfocus and onblur. The problem is that when change the field, and close the browser without bluring it, I can't understand...
  13. Corwinsw

    arrays and variables with pattern matching

    I almost couldn't understand anything. But you can check from CPAN Tie::File, I think it could help you. Corwin
  14. Corwinsw

    Upgrade Perl with cpan

    Hi, is it possible to upgrade my perl version, using cpan? Corwin
  15. Corwinsw

    Windows CPAN problem

    Made it work. Should install nmake and reconfigure CPAN. Corwin
  16. Corwinsw

    Windows CPAN problem

    Hi I am trying to use the CPAN command line install utility with NT, but it gives me the following error: 'isntall' is not recognized as internal or external command, operable program or batch file. Corwin
  17. Corwinsw

    Read data from file

    open IN, "< file1"; open OUT, "> file2"; while (<IN>) { s/(,.*)$//; print OUT "$_\n"; } try this Corwin
  18. Corwinsw

    Perl - swf to wav

    or any ideas which could help me. :) Corwin
  19. Corwinsw

    Perl - swf to wav

    Does somebody know module which could help me to do that? Corwin
  20. Corwinsw

    combination help script

    my @arr1 = (a1,a2,a3); my @arr2 = (b1,b2,b3); foreach my $var1 (0 .. $#arr1) { foreach my $var2 (0 .. $#arr2) { print "$arr1[$var1], $arr2[$var2]\n"; } } Corwin

Part and Inventory Search

Back
Top