The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Piping / Executing ProFiction Shell Programming and Scripting 3 07-23-2007 01:58 PM
Piping in UNIX simo007 UNIX for Dummies Questions & Answers 3 05-23-2007 02:40 AM
Piping from device? gary101 Shell Programming and Scripting 0 03-31-2007 06:21 AM
Help with piping program PuppyHusher High Level Programming 3 03-30-2007 12:26 PM
Help (Piping ls, tr, cut) scan Shell Programming and Scripting 2 02-11-2006 08:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-13-2006
lnatz lnatz is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 2
piping

I am using pipes (specifically piping out) in Perl to put an array from one file into an array in a different file. I can't figure out how to transfer the array. I kow how to open the pipe : open (FILEHANDLE, "| file") or die~
but how do I transfer the array. I think it has something to do with this error that keeps on appearing when I execute:

Name "main::DIRECTORY" used only once: possible typo at ./draft2.pl line 38.

Last edited by zazzybob; 07-13-2006 at 10:08 PM.. Reason: disabled smilies
  #2 (permalink)  
Old 07-14-2006
Hitori's Avatar
Hitori Hitori is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2006
Posts: 360
May be this will be appropriate
open (FILEHANDLE, ">> file") or die;
or
open (FILEHANDLE, "> file") or die;
If you create a pipe with mknod file p you cannot use | file syntax, > file must be used in any case
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 05:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0