Formatted Read

2005-09-23 Thread r huber
Is the a formatted read in perl? I have fixed length records that need to be split up into separate fields/variables and there is no delimiter. I've checked my perl book and can not find anything other than doing a series of substr's. Thanks, rj _

Default VAriable

2004-02-03 Thread r huber
Greeting: When I execute the following: <>; print; I get the error message "Use of uninitialized value in print" but when I exectue: while (<>) { print; } I get what I type in echoed back to my screen. Why does the first snippet of code get an error message and the second not? Thanks, rj

Error: Use of uninitialized value in print

2004-02-03 Thread r huber
Why does <>; print; give the error "Use of uninitialized value in print" and while( <> ) { print; } not give that error or any other for that matter (and I do realize the infinite loop aspect of the while loop) Thanks, rj __ Do you Yahoo!? Yahoo! SiteBuilder -

Making A Library of Perl Subroutines

2004-01-04 Thread r huber
I am writing several subroutines that I want to make available to other programs without directly including the code in those programs. Can anyone explain how to do this or where to go to find out how to do it. TIA, rj __ Do you Yahoo!? Find out what made the Top Y