I have an existing perl script (which i cannot modify) which has two STDIN calls. I would like to run this perl script from a powershell script and fe ...
I have an existing perl script (which i cannot modify) which has two STDIN calls. I would like to run this perl script from a powershell script and fe ...
I am writing a perl program which creates a procmailrc text file. The output procmail requires looks like this: (partial IP addresses separated by "| ...
my question is very simple: i have a database that is looking like this: My goal is just to eliminate the newline \n at the end of every sequence li ...
I am trying to grab the values between two delimiters in Perl using regex. I am opening a file and using chomp to go through the file line by line. Ex ...
I'm fairly new to coding and I need a fail statement to print out as if it were an or die. Part of my code for an example: I need it to do it for ...
I am trying to learn Perl here and the tutorial suggests the following code snippet after reading some file: I don't quite understand why we need c ...
I want ask you for some tips. My code looks like next few rows: My goal is to filter many line log. Output is one or two lines matching regex. But ...
So I am working on a game of Chomp. Where you have a grid of "cookies" and a "poison cookie" in the bottom left corner. When a player selects a cookie ...
I'm trying to get rid of the brackets [] and the new line \n from being printed. My code looks like: I would like the output to look like JoshBobb ...
When collecting user input in Ruby, is there ever a time where using chomp on that input would not be the desired behavior? That is, when would simply ...
I'm completely new to programming and im having trouble figuring out why Im getting an error when typing the following: When I run in terminal the ...
So this is what should be of interest for you to be able to help me, the program is written in perl and I'm using both warnings and strict in perl but ...
Can anyone help me with this simple exercise? The result is: ...
So I am currently trying to write a perl script that reads to a file and writes to another. Currently, the problem that I have been having is removing ...
Below I have a list of data I am trying to manipulate. I want to split the columns and rejoin them in a different arrangement. I would like to switch ...
I saw two ways to use gets, a simple form: and a form that drew my attention: The second sample looks like perl in using the flush method of the ...
I'm having weird things when extracting line from file. Lines are coming from SSH commands sent on a router and saved into a file. They are looking l ...
This is my code which takes input file from command line. It takes the following file as input: In the code I tried to remove the newline at the ...
I want to read a string from a the first line in a file, then repeat it n repetitions in the console, where n is specified as the second line in the f ...
I'm trying to use chomp() to remove all the newline character from a file. Here's the code: and the test conent for the input.txt file is simple: ...