|
||||||
| Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
alright, cool thanks. I'm also having problems concatenating strings from standard input. My subroutine is called that contains a string in $_[0], which I want to concatenate with input from <stdin>. "." or "join()" doesn't seem to work. Can "\n" - new line characters cause problems when reading from standard input?
Code:
while( $line = <stdin> )
{
$_[0] = $_[0] . $line #doesn't work
$_[0] .= $line #doesn't work
}
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: C# Regex | NeedHelp | CSharp Tutorials | 2 | 05-01-2007 07:44 AM |
| regex (yuck) | John | PHP Forum | 9 | 08-09-2006 01:35 AM |
| Boolean expressions | Sionofdarkness | Java Help | 11 | 08-02-2006 08:25 PM |
| Arithmetic Expressions | Sionofdarkness | Java Help | 2 | 07-29-2006 01:23 PM |
| Regular expressions | Nightracer | General Programming | 6 | 07-24-2006 10:57 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%