Re: Open() and glob EXPR

2007-05-02 Thread Somu
Ok i got that.. I also checked the perldoc -f q -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Open() and glob EXPR

2007-04-28 Thread Jay Savage
On 4/28/07, Somu <[EMAIL PROTECTED]> wrote: Thank you all.. Now i'm able to open files from other drives and directories.. The EXPR in glob EXPR is actually a kind of regexp then? What is this new q{} operator? I am sorry for the previous dubious emails, they actually were errors made by the ma

Re: Open() and glob EXPR

2007-04-28 Thread Somu
Thank you all.. Now i'm able to open files from other drives and directories.. The EXPR in glob EXPR is actually a kind of regexp then? What is this new q{} operator? I am sorry for the previous dubious emails, they actually were errors made by the mail sender. -- To unsubscribe, e-mail: [EMAIL

Re: Open() and glob EXPR

2007-04-28 Thread Dr.Ruud
"Rodrick Brown" schreef: > my @files = glob("*.*"); The glob() also returns directory names, so maybe @names is a better name for that variable. With "*.*", all names are left out that start with a dot, or that contain no dot at all. Try: perl -wle 'print for glob q{.* *}' -- Affijn, Ruud

Re: Open() and glob EXPR

2007-04-27 Thread Chas Owens
On 4/27/07, Somu <[EMAIL PROTECTED]> wrote: snip My next question is regarding opening pipes. I tried the following: open ( FH , " notepad " ); print FH 'hello' ; But its only opening the notepad application, and nothing shows up on the notepad.. snip I fear that you are trying to open the

Re: Open() and glob EXPR

2007-04-27 Thread Jay Savage
Please don't top post. On 4/27/07, Somu <[EMAIL PROTECTED]> wrote: Please give me one simple example using glob.. I saw the perlopentut, and perldoc -f open, and perldoc -f glob, but i am unable to make out anything from them.. I know only how to open files which are in the same dir or child dir

Re: Open() and glob EXPR

2007-04-27 Thread Rodrick Brown
On 4/27/07, Somu <[EMAIL PROTECTED]> wrote: Please give me one simple example using glob.. I saw the perlopentut, and perldoc -f open, and perldoc -f glob, but i am unable to make out anything from them.. I know only how to open files which are in the same dir or child dir.. But suppose i am in d

Re: Open() and glob EXPR

2007-04-27 Thread Somu
Please give me one simple example using glob.. I saw the perlopentut, and perldoc -f open, and perldoc -f glob, but i am unable to make out anything from them.. I know only how to open files which are in the same dir or child dir.. But suppose i am in dir D:/Scripts/Test and i want to open another

Re: Open() and glob EXPR

2007-04-26 Thread John W. Krahn
Somu wrote: > I'm not certain about what EXPR is.. EXPR is any valid Perl expression. > How do i use glob? perldoc -f glob perldoc File::Glob > My next question is regarding opening pipes. I tried the following: > open ( FH , " notepad " ); > print FH 'hello' ; | is the pipe character so somet

Re: Open() and glob EXPR

2007-04-26 Thread Jeff Pang
open FH,">","notepad" or die $!; # create a new file open FH,">>","notepad" or die $!; # append to a file,if not exists,then create one see "perldoc -f open". 2007/4/27, Somu <[EMAIL PROTECTED]>: I'm not certain about what EXPR is.. How do i use glob? My next question is regarding opening pi

Open() and glob EXPR

2007-04-26 Thread Somu
I'm not certain about what EXPR is.. How do i use glob? My next question is regarding opening pipes. I tried the following: open ( FH , " notepad " ); print FH 'hello' ; But its only opening the notepad application, and nothing shows up on the notepad.. -- To unsubscribe, e-mail: [EMAIL PROTECT