incognito wrote: > Thank you for your attention, Bob. > > > What is your actual regex? At a minimum, you'll need /g modifier. > > You may need /m and/or /s as well. > > May be I didn't explained my prob exactly. > I don't have a problem with the regex (and yes, I have the /m /g and > /s). Related to the regex, my script works fine - and I get the > result I want. > I already print the $1 to STDOUT, where it get's redirected to sort > and then to a file.
OK, I thought when you said "no output", that included the STDOUT; thus the focus on the loop. > > My idea was to duplicate the $1 value to another file (write one > value to STDOUT and to a file) and I could not solve it. > > It has nothing to do with the $1, as I tried to write a fixed text > and the file didn't gets created. I notice you don't put an explicit path on the filename. Is it possible the current directory is something other that what you expect it to be, and the file is being successfully created in another location? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>