Loading ...
Sorry, an error occurred while loading the content.

Can String replaced with SPL characters

Expand Messages
  • Sathish Kumar Kuppan
    hi, I wanna replace a string, say aaa with // ... in a file... i tried with this option as below, yet i didnt achieve it... $file_input[$i] =~ s/aaa/ // /gi;
    Message 1 of 1 , Sep 30, 2004

      I wanna replace a string, say aaa with // ... in a file...
      i tried with this option as below, yet i didnt achieve it...

      $file_input[$i] =~ s/aaa/ // /gi;

      can anybody suggest me achieve it !




      -----Original Message-----
      From: jocua.rm [mailto:jocua@...]
      Sent: Wednesday, September 29, 2004 1:25 AM
      To: perl-beginner@yahoogroups.com
      Subject: [PBML] Question on Installing Sybperl Module


      I want to connect to a Sybase Database using a perl script.

      I have a Perl 5.6.1 running on a Linux box. I downloaded the sybperl
      2.171 module from http://www.peppler.org/downloads/

      Then I copied this file to this location /usr/lib/perl5/5.6.1/Sybase

      Then I unzipped it using the following commands,

      gunzip sybperl-2.171.tar.gz
      tar xvof sybperl-2.171.tar

      Then I continued using the following commands...

      perl Makefile.PL (I just use the default values)
      make test (it gave me errors, this is the last line, Failed
      11/11 test scripts, 0.00% okay. 214/215 subtests failed, 0.47% okay.
      make: *** [test_dynamic] Error 2)
      make install

      I ignore this error and proceeded to write a basic connection perl
      script... here is what I wrote.

      use Sybase::DBlib;
      $passwd ="test";
      $dbserver = "test.server";
      my $dbconn = Sybase::DBlib->dblogin($login, $passwd,
      $dbserver) || die "error";

      And I got this error,

      DB-Library error:
      Could not open interface file.
      error at sybase.pl line 6.

      Can you help me with this problem? I think I'm not installing the
      module properly... Thanks in advance.


      Unsubscribing info is here: http://help.yahoo.com/help/us/groups/groups-32.html

      Yahoo! Groups Sponsor

      <http://us.ard.yahoo.com/SIG=1294pbcpb/M=295196.4901138.6071305.3001176/D=groups/S=1705006951:HM/EXP=1096487764/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here


      Yahoo! Groups Links

      * To visit your group on the web, go to:

      * To unsubscribe from this group, send an email to:
      perl-beginner-unsubscribe@yahoogroups.com <mailto:perl-beginner-unsubscribe@yahoogroups.com?subject=Unsubscribe>

      * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .

      Information contained and transmitted by this E-MAIL is proprietary to
      Hexaware Technologies and is intended for use only by the individual or
      entity to which it is addressed and may contain information that is
      privileged, confidential or exempt from disclosure under applicable law.
      If this is a forwarded message, the content of this E-MAIL may not have
      been sent with the authority of the Company. If you are not the intended
      recipient, an agent of the intended recipient or a person responsible
      for delivering the information to the named recipient, you are notified
      that any use, distribution, transmission, printing, copying or
      dissemination of this information in any way or in any manner is
      strictly prohibited. If you have received this communication in error,
      please delete this mail & notify us immediately at

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.