Search Results

Search: Posts Made By: Eric1
2,403
Posted By Eric1
use warnings; use strict; use Scalar::Util...
use warnings;
use strict;
use Scalar::Util 'looks_like_number';
print "Welcome to an interactive Perl program. Enter either q or Q to terminate the program or c to continue. Enter your key now: ";...
2,403
Posted By Eric1
Okay so an update (sorry if this is late). I...
Okay so an update (sorry if this is late). I managed to get the program to run, but I'm not getting my desired output. When I get to part 2 without changing any information, and I input the name say,...
2,403
Posted By Eric1
First thing I'll note is that the very first line...
First thing I'll note is that the very first line I submitted as my code is actually line 8 (due to comments I made on previous lines).

These are the error messages I'm receiving on my terminal-
...
2,403
Posted By Eric1
Assistance on complicated perl script
As a followup to my previous thread, I'm trying to make a complicated perl script that involves storing information from a text file into a hash, and giving the user the ability to change the...
1,827
Posted By Eric1
Don't worry, the info I posted aren't real...
Don't worry, the info I posted aren't real people. I'll try out your code in a bit Aia, thank you for the examples. Is there no way for me to accomplish this task of mine with the open commend...
1,827
Posted By Eric1
How to store info from a txt file into a hash?
I'm trying to make a perl script using the "open" command to open and read a file, storing the information in said file into a hash structure.

This is what is inside my file-

Celena Standard ...
1,137
Posted By Eric1
Ahh okay, thank you for the tips and help Aia
Ahh okay, thank you for the tips and help Aia
1,137
Posted By Eric1
This script is the same as the interactive perl...
This script is the same as the interactive perl script that I've made a few threads about before. That whole portion is the purpose of my script.

That said, I went in and mucked about some more...
1,137
Posted By Eric1
#!/usr/bin/perl use warnings; use strict; ...
#!/usr/bin/perl

use warnings;
use strict;
use Scalar::Util 'looks_like_number';
no strict "subs";
my $i;
$i=0;
while ($i==0)
{
print "Welcome to an interactive Perl program. Enter...
1,137
Posted By Eric1
Slight error with my perl script that I could use some help on
So I have a perl script that prompts the user to enter either q or Q to exit the program or c to continue said program. If the user inputs anything other than those three keys they will be prompted...
3,153
Posted By Eric1
Thank you Aia!
Thank you Aia!
3,153
Posted By Eric1
Thanks Aia! I have another question actually. In...
Thanks Aia! I have another question actually. In Perl, how do you declare multiple keys to one value when it comes to hashes?

An example would be, say, I want four keys known as 'acg', 'acc',...
3,153
Posted By Eric1
Checking the user input in perl for characters and length
My question is basically as the title says. How can I check a user inputted string is only certain characters long (for example, 3 characters long) and how do I check a user inputted string only...
1,886
Posted By Eric1
Thanks Aia! It's working now! I'll either update...
Thanks Aia! It's working now! I'll either update this thread or start a new one when I'm nearing the end of the full program, thanks again for the help!
1,886
Posted By Eric1
I changed the || to && but I'm still getting the...
I changed the || to && but I'm still getting the same thing where it just continually prompts the user to enter a key, even if they enter in 'q', 'Q', or 'c'
1,886
Posted By Eric1
Having trouble getting my interactive perl script to work properly
So I'm making an interactive perl script, but I can't get it to work properly. I'm trying to make a script that tell the user to input either 'q' or 'Q' to terminate the program, or 'c' to continue...
1,759
Posted By Eric1
Thanks! That fixed it!
Thanks! That fixed it!
1,759
Posted By Eric1
Found = in conditional error?
Hey, I'm trying to make an interactive perl program and while I'm not done I wanted to share the bit of code I have at the moment because I keep running into an error that says that it "Found = in...
935
Posted By Eric1
Thank you, it works!
Thank you, it works!
935
Posted By Eric1
Trying to run a script that runs another script
So I have a bash script called count.sh

This is what is inside it-

if [ -z "$2" ]; then
echo "Error"
else
echo "Correct!"

I want to put this script into another script that I'll...
2,698
Posted By Eric1
@RudiC I don't work for any company or project,...
@RudiC I don't work for any company or project, this is just me trying to learn

@Scrutinizer I tried to do it like this-

userinput=3
awk -v var1=-86.4149 -v var2=-79.6892 -v var3=3 -v...
2,698
Posted By Eric1
Okay so first off, I would like to thank you for...
Okay so first off, I would like to thank you for the reply and your assistance. I've inputted in the code you gave me with just some simple changes (like excluding the print line, as I don't want the...
2,698
Posted By Eric1
Okay, so for example, here is what is inside one...
Okay, so for example, here is what is inside one of the Node text files-

-80.0222 -81.3604 -83.2733 -87.9688 -86.7132 -82.938 -81.6501 -76.9167 -78.9644 -80.2246
-79.0461 -80.5249 -82.2464...
2,698
Posted By Eric1
Trying to get an awk script to replace values in column
I'm trying to make an awk script to compare values I've set as var1, var2, and var3 earlier in the script to the values in the userinputted column of four text files called Node1.txt, Node2.txt,...
1,464
Posted By Eric1
Ah okay, this is a homework assignment yes. My...
Ah okay, this is a homework assignment yes. My apologies. I'll delete this thread.
Showing results 1 to 25 of 26

 
All times are GMT -4. The time now is 08:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy