Re: Matching a Scalar Variable



Sorry i am passing the OPEN as
Open (FILE1,"<one Fuile");
Open (FILE,"<Second File");

Still the string is ot matching. Help me please

Regards
Mazhar


On 11/29/05, Muthukumar <zenmuthu@xxxxxxxxx> wrote:
>
>
>
> On 11/29/05, Mazhar <syedmazhar.hasan@xxxxxxxxx> wrote:
> >
> > Hi Folks,
> > I have a requirement where in i have to read a file and then
> > store
> > the line by line items into a scalar variable. And then ihave ti match
> > the
> > same. i am providing you a sample code. Just help how can i match a
> > string
> > where in i should pass a scalar variable value.
> >
> > PGM
> >
> > Open (FILE1,">one Fuile");
> > Open (FILE,">Second File");
> >
> > while (<FILE1>)
> > {
> > $line1 = $_;
> > while (<FILE>)
> > {
> > $line = $_;
> > if ($line =~ /(.*)$line1(.*)/) (Here i have to check the
> > value which i get from a file but it is not searching)
> > {
> > print "Got the String";
> > }
> > }
> > }
> >
> >
> > Open (FILE1,">one Fuile");
> Open (FILE,">Second File");
>
> Change this to,
>
> Open (FILE1,"<one Fuile");
> Open (FILE,"<Second File");
>
> > means write mode.
>
>
>


Relevant Pages

  • Re: Storing a value for later use in vba or a Macro
    ... Dim strCurrentCustomer as String ... do you programmatically store a value from one record to use in ...
    (microsoft.public.access.gettingstarted)
  • Re: Storing wave files in database
    ... analyse them and store everything in some sort of database. ... You don't store the Wave files in the database. ... ByVal lpOperation As String, _ ... Dim lRet As Long, varTaskID As Variant ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Question about a data structure
    ... I'll store the ... string, it could just be a simgle 150 character string. ... , personally, I'd avoid 'stringing' together responses. ...
    (alt.php)
  • RE: adding data to a file before it gets regexed
    ... The reasion I am trying to add the string to the line, is so that I can use ... it is not a good idea to store entire files in memory and it is really ... the arrays are the contents of the files broken down by lines. ... Any opinion expressed in this e-mail is personal to the sender ...
    (perl.beginners)
  • Re: Java Applet saving results on home server
    ... I can also store the results to a string and write that to a ... that has some data structures to store all the things I need, ... This puts you right back into your original question. ... I've got a problem with the Jakarta ftp client. ...
    (comp.lang.java.help)