Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > while( total_ignorance ) help

Reply
Thread Tools

while( total_ignorance ) help

 
 
john prokopek
Guest
Posts: n/a
 
      08-01-2003
I just installed ActiveState Perl 5.8 on a Win2k system. For a sanity
check I a one line script to take input from STDIN and print. Hey it
doesn't work. If I just perform a print with some text that works. So
can someone clue me in.


So, why doesn't this print out anything:


while(<STDIN>) { print;}

or

while ($line = <STDIN>) {print $line;}


thanks


John


 
Reply With Quote
 
 
 
 
john prokopek
Guest
Posts: n/a
 
      08-01-2003
so, my input problem is a result of using perl in a windows environment.
I wanted to use my script in the following manner:


dir /b | script.pl

Well in windoze this doesn't seem to work.
Is there any way to get this work as is?

thank you for your help


john

john prokopek wrote:
> I just installed ActiveState Perl 5.8 on a Win2k system. For a sanity
> check I a one line script to take input from STDIN and print. Hey it
> doesn't work. If I just perform a print with some text that works. So
> can someone clue me in.
>
>
> So, why doesn't this print out anything:
>
>
> while(<STDIN>) { print;}
>
> or
>
> while ($line = <STDIN>) {print $line;}
>
>
> thanks
>
>
> John
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments