|
||||||
| 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 06:44 AM |
| regex (yuck) | John | PHP Forum | 9 | 08-09-2006 12:35 AM |
| Boolean expressions | Sionofdarkness | Java Help | 11 | 08-02-2006 07:25 PM |
| Arithmetic Expressions | Sionofdarkness | Java Help | 2 | 07-29-2006 12:23 PM |
| Regular expressions | Nightracer | General Programming | 6 | 07-24-2006 09:57 PM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 65%